1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* 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
This commit is contained in:
nobu 2005-09-27 22:57:53 +00:00
parent 63e5821460
commit 462fd870d7
5 changed files with 63 additions and 41 deletions

View file

@ -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