lib/paddle/collection.rb in paddle-2.2.0 vs lib/paddle/collection.rb in paddle-2.2.1
- old
+ new
@@ -21,7 +21,19 @@
def initialize(data:, total:)
@data = data
@total = total
end
+
+ def each(&block)
+ data.each(&block)
+ end
+
+ def first
+ data.first
+ end
+
+ def last
+ data.last
+ end
end
end