Project

General

Profile

Feature #12960 » 0003-feat-psych-add-hook-point-for-mapping-key-and-value.patch

kwatch (makoto kuwata), 11/19/2016 03:21 AM

View differences:

ext/psych/lib/psych/visitors/to_ruby.rb
list
end
def accept_key k
accept(k)
end
def accept_value v
accept(v)
end
SHOVEL = '<<'
def revive_hash hash, o
o.children.each_slice(2) { |k,v|
key = accept(k)
val = accept(v)
key = accept_key(k)
val = accept_value(v)
if key == SHOVEL && k.tag != "tag:yaml.org,2002:str"
case v
(3-3/10)