diff options
author | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-15 18:36:51 +0000 |
---|---|---|
committer | why <why@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-11-15 18:36:51 +0000 |
commit | c0978692df91f23d4dd32f3fe247763173ed61a5 (patch) | |
tree | bc6622313864e0ce66b5ca07c0999f4f111f76c8 /lib/yaml | |
parent | 91e0600535329f9fda341ebc876b6ddef9c0ea8c (diff) | |
download | ruby-c0978692df91f23d4dd32f3fe247763173ed61a5.tar.gz |
* ext/syck/rubyext.c: Node#value defined twice.
* lib/yaml/: several method redefinitions causing warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13942 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml')
-rw-r--r-- | lib/yaml/basenode.rb | 2 | ||||
-rw-r--r-- | lib/yaml/types.rb | 2 |
2 files changed, 1 insertions, 3 deletions
diff --git a/lib/yaml/basenode.rb b/lib/yaml/basenode.rb index d24f6172e9..5439903f42 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 4396e36df2..3871c628fe 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 |