lib/cistern/collection.rb in cistern-0.2.2 vs lib/cistern/collection.rb in cistern-0.2.3
- old
+ new
@@ -8,10 +8,10 @@
data = super(*args, &block)
self.clone.clear.concat(data)
end
end
- %w[first last].each do |method|
+ %w[first last size count to_s].each do |method|
define_method(method) do
lazy_load unless @loaded
super()
end
end