lib/eco/language/models/collection.rb in eco-helpers-0.7.2 vs lib/eco/language/models/collection.rb in eco-helpers-0.8.1
- old
+ new
@@ -47,9 +47,13 @@
def newFrom(data)
self.class.new(data, klass: @klass, factory: @factory)
end
+ def merge(data)
+ newFrom to_a + data
+ end
+
def to_c
Collection.new(self, klass: @klass, factory: @factory)
end
def new