Class: ActiveJson::Array
- Inherits:
-
Array
- Object
- Array
- ActiveJson::Array
- Defined in:
- lib/active_json/array.rb
Instance Method Summary collapse
Instance Method Details
#to_h ⇒ Object
3 4 5 6 7 |
# File 'lib/active_json/array.rb', line 3 def to_h map do |value| STRUCTURES.any? { |s| value.is_a?(s) } ? value.to_h : value end end |