Feature #12960 » 0006-feat-psych-refactor-hook-point-methods-for-merge.patch
ext/psych/lib/psych/visitors/to_ruby.rb | ||
---|---|---|
def merge_sequence hash, val
|
||
h = {}
|
||
val.reverse_each do |value|
|
||
h.merge! value
|
||
merge_mapping(h, value)
|
||
end
|
||
hash.merge! h
|
||
merge_mapping(hash, h)
|
||
end
|
||
def merge_key hash, key, val
|