aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych/lib/psych/visitors/to_ruby.rb
diff options
context:
space:
mode:
authortenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-07 16:58:10 +0000
committertenderlove <tenderlove@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-07 16:58:10 +0000
commitdb70e477d310d9daf8f22b009521fcd67fec0205 (patch)
tree73778b242ce07f61ed0861409e473888251b056f /ext/psych/lib/psych/visitors/to_ruby.rb
parentc5942b91a2812cae59878b5e0d4ecf7c0e41cfdc (diff)
downloadruby-db70e477d310d9daf8f22b009521fcd67fec0205.tar.gz
* ext/psych/*: update psych to 2.0.16
* test/psych/*: ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52920 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/lib/psych/visitors/to_ruby.rb')
-rw-r--r--ext/psych/lib/psych/visitors/to_ruby.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/visitors/to_ruby.rb b/ext/psych/lib/psych/visitors/to_ruby.rb
index ea3ab1c479..4c3591b373 100644
--- a/ext/psych/lib/psych/visitors/to_ruby.rb
+++ b/ext/psych/lib/psych/visitors/to_ruby.rb
@@ -330,12 +330,13 @@ module Psych
list
end
+ SHOVEL = '<<'
def revive_hash hash, o
o.children.each_slice(2) { |k,v|
key = accept(k)
val = accept(v)
- if key == '<<' && k.tag != "tag:yaml.org,2002:str"
+ if key == SHOVEL && k.tag != "tag:yaml.org,2002:str"
case v
when Nodes::Alias, Nodes::Mapping
begin