Commit a3823765 authored by Volker Hilsheimer's avatar Volker Hilsheimer
Browse files

Allow merging of string into hash

The string becomes a key with nil value.
parent 6447f3c2
......@@ -46,6 +46,10 @@ def merge_yaml(first, second)
if first.has_value?(second)
return first
if second.is_a?(String)
first[second] = nil
return first
STDERR.puts "Can't insert #{second.class} '#{second}' into hash #{first}"
return first
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment