aboutsummaryrefslogtreecommitdiffstats
path: root/lib/yaml/basenode.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-27 22:57:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-09-27 22:57:53 +0000
commit462fd870d70a13713e13f78bb058ee0e06b0e31c (patch)
tree2339f84b7c7351b2e328960d7bad906bc0f2d8c2 /lib/yaml/basenode.rb
parent63e58214602bba961af15dac35e160427ffd5c12 (diff)
downloadruby-462fd870d70a13713e13f78bb058ee0e06b0e31c.tar.gz
* 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: svn+ssh://ci.ruby-lang.org/ruby/trunk@9323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/yaml/basenode.rb')
-rw-r--r--lib/yaml/basenode.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/yaml/basenode.rb b/lib/yaml/basenode.rb
index 7072b1dcd6..d24f6172e9 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