Class: Furi::Utils
- Inherits:
-
Object
- Object
- Furi::Utils
- Defined in:
- lib/furi/utils.rb
Class Method Summary collapse
Class Method Details
.stringify_keys(hash) ⇒ Object
5 6 7 8 9 10 11 12 |
# File 'lib/furi/utils.rb', line 5 def stringify_keys(hash) result = {} hash.each_key do |key| value = hash[key] result[key.to_s] = value.is_a?(Hash) ? stringify_keys(value) : value end result end |