Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/dato/dump/format/yaml.rb
Direct Known Subclasses
Dato::Local::FieldType::Gallery, Dato::Local::FieldType::Links, Dato::Local::FieldType::RichText, Dato::Local::ItemsRepo::ItemCollection
Instance Method Summary collapse
Instance Method Details
#deep_stringify_keys ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/dato/dump/format/yaml.rb', line 6 def deep_stringify_keys each_with_object([]) do |value, accum| if value.is_a?(Hash) || value.is_a?(Array) new_val = value.deep_stringify_keys accum.push new_val else accum.push value end accum end end |