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:
parent
63e5821460
commit
462fd870d7
5 changed files with 63 additions and 41 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue