class ActiveJson::Array

Public Instance Methods

to_h() click to toggle source
# 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