Class: Array
- Inherits:
-
Object
- Object
- Array
- Defined in:
- lib/pg_json/sequel/pg_json.rb
Instance Method Summary collapse
Instance Method Details
#json_typify! ⇒ Object
57 58 59 60 61 62 63 64 65 |
# File 'lib/pg_json/sequel/pg_json.rb', line 57 def json_typify! self.each do |item| if item.is_a? Hash item.json_typify! elsif item.is_a? Array item.json_typify! end end end |
#recursively_symbolize_keys! ⇒ Object
67 68 69 70 71 72 73 74 75 |
# File 'lib/pg_json/sequel/pg_json.rb', line 67 def recursively_symbolize_keys! self.each do |item| if item.is_a? Hash item.recursively_symbolize_keys! elsif item.is_a? Array item.recursively_symbolize_keys! end end end |