Method: ActiveModel::AttributeSet#map

Defined in:
activemodel/lib/active_model/attribute_set.rb

#map(&block) ⇒ Object



97
98
99
100
# File 'activemodel/lib/active_model/attribute_set.rb', line 97

def map(&block)
  new_attributes = attributes.transform_values(&block)
  AttributeSet.new(new_attributes)
end