lib/origin/extensions/array.rb in origin-1.1.0 vs lib/origin/extensions/array.rb in origin-2.0.0
- old
+ new
@@ -165,10 +165,10 @@
# @return [ Object ] The evolved object.
#
# @since 1.0.0
def evolve(object)
if object.is_a?(::Array)
- object.map!{ |obj| obj.class.evolve(obj) }
+ object.map { |obj| obj.class.evolve(obj) }
else
object
end
end
end