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
76 77 78 79 80 81 82 83 84 |
# File 'lib/pg_json/sequel/pg_json.rb', line 76 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
86 87 88 89 90 91 92 93 94 |
# File 'lib/pg_json/sequel/pg_json.rb', line 86 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 |