mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
91e0600535
commit
c0978692df
4 changed files with 7 additions and 4 deletions
|
@ -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 )
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue