summaryrefslogtreecommitdiff
path: root/lib/yaml/basenode.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/yaml/basenode.rb')
-rw-r--r--lib/yaml/basenode.rb2
1 files changed, 1 insertions, 1 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 )