Class: Solid::LiquidExtensions::PaginatedForLoop

Inherits:
ForLoop
  • Object
show all
Defined in:
lib/solid/liquid_extensions/for_tag.rb

Instance Method Summary collapse

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