Class: Solid::LiquidExtensions::PaginatedForLoop
- Defined in:
- lib/solid/liquid_extensions/for_tag.rb
Instance Method Summary collapse
-
#initialize(collection) ⇒ PaginatedForLoop
constructor
A new instance of PaginatedForLoop.
Methods inherited from ForLoop
#first, #inc!, #index, #index0, #last, #length, #rindex, #rindex0
Constructor Details
#initialize(collection) ⇒ PaginatedForLoop
Returns a new instance of PaginatedForLoop.
93 94 95 96 |
# File 'lib/solid/liquid_extensions/for_tag.rb', line 93 def initialize(collection) super @index0 = collection.offset || 0 end |