Module: ConfigHelper
- Included in:
- Solano::RepoConfig
- Defined in:
- lib/solano/util.rb
Instance Method Summary collapse
Instance Method Details
#hash_stringify_keys(h) ⇒ Object
53 54 55 56 57 58 59 60 61 62 |
# 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 |