module ConfigHelper

Public Instance Methods

hash_stringify_keys(h) click to toggle source
# File lib/solano/util.rb, line 53
def hash_stringify_keys(h)
  case h
  when Hash
    Hash[ h.map { |k, v| [ k.to_s, hash_stringify_keys(v) ] } ]
  when Enumerable
    h.map { |v| hash_stringify_keys(v) }
  else
    h
  end
end