Module: Origin::Extensions::Array::ClassMethods
- Defined in:
- lib/origin/extensions/array.rb
Instance Method Summary collapse
-
#evolve(object) ⇒ Object
Evolve the object when the serializer is defined as an array.
Instance Method Details
#evolve(object) ⇒ Object
Evolve the object when the serializer is defined as an array.
168 169 170 171 172 173 174 |
# File 'lib/origin/extensions/array.rb', line 168 def evolve(object) if object.is_a?(::Array) object.map { |obj| obj.class.evolve(obj) } else object end end |