summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/yaml/basenode.rb2
-rw-r--r--lib/yaml/types.rb2
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/yaml/basenode.rb b/lib/yaml/basenode.rb
index d24f617..5439903 100644
--- a/lib/yaml/basenode.rb
+++ b/lib/yaml/basenode.rb
@@ -184,7 +184,7 @@ module YAML
#
def []( *key )
if Hash === @value
- v = @value.detect { |k,v| k.transform == key.first }
+ v = @value.detect { |k,| k.transform == key.first }
v[1] if v
elsif Array === @value
@value.[]( *key )
diff --git a/lib/yaml/types.rb b/lib/yaml/types.rb
index 05113f2..7897db4 100644
--- a/lib/yaml/types.rb
+++ b/lib/yaml/types.rb
@@ -10,7 +10,6 @@ module YAML
#
class PrivateType
def self.tag_subclasses?; false; end
- attr_accessor :type_id, :value
verbose, $VERBOSE = $VERBOSE, nil
def initialize( type, val )
@type_id = type; @value = val
@@ -28,7 +27,6 @@ module YAML
#
class DomainType
def self.tag_subclasses?; false; end
- attr_accessor :domain, :type_id, :value
verbose, $VERBOSE = $VERBOSE, nil
def initialize( domain, type, val )
@domain = domain; @type_id = type; @value = val