lib/rubber/util.rb in rubber-2.0.5 vs lib/rubber/util.rb in rubber-2.0.6
- old
+ new
@@ -8,9 +8,16 @@
options[key.to_sym || key] = value
options
end
end
+ def stringify_keys(map)
+ map.inject({}) do |options, (key, value)|
+ options[key.to_s || key] = value
+ options
+ end
+ end
+
def stringify(val)
case val
when String
val
when Hash