diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-27 22:57:53 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-09-27 22:57:53 +0000 |
commit | 9d4f5b06058e2de2ac8d77fe36b7b5846f99bbcf (patch) | |
tree | 2339f84b7c7351b2e328960d7bad906bc0f2d8c2 /lib/yaml/basenode.rb | |
parent | 493610a6f47e524184894cbd81f0496fd7b28de5 (diff) | |
download | ruby-9d4f5b06058e2de2ac8d77fe36b7b5846f99bbcf.tar.gz ruby-9d4f5b06058e2de2ac8d77fe36b7b5846f99bbcf.tar.xz ruby-9d4f5b06058e2de2ac8d77fe36b7b5846f99bbcf.zip |
* lib/yaml/basenode.rb (YAML::BaseNode::match_segment): fix typo.
[ruby-dev:27237], [ruby-core:05854]
* lib/yaml/tag.rb (Module#yaml_as): suppress warnings.
* lib/yaml/types.rb (YAML::PrivateType, YAML::DomainType): ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml/basenode.rb')
-rw-r--r-- | lib/yaml/basenode.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yaml/basenode.rb b/lib/yaml/basenode.rb index 7072b1dcd..d24f6172e 100644 --- a/lib/yaml/basenode.rb +++ b/lib/yaml/basenode.rb @@ -148,7 +148,7 @@ module YAML if pred case pred when /^\.=/ - pred = $' + pred = $' # ' match_nodes.reject! { |n| n.last.value != pred } @@ -187,7 +187,7 @@ module YAML v = @value.detect { |k,v| k.transform == key.first } v[1] if v elsif Array === @value - @value.[]( *k ) + @value.[]( *key ) end end |