class Liquid::ForLoop

Defined in:

liquid/for_loop.cr

Constructors

Instance Method Summary

Instance methods inherited from class Liquid::Drop

[](method : String) : Liquid::Any [], call(method : String) : Liquid::Any call

Constructor Detail

def self.new(collection : Array(Liquid::Any) | Hash(String, Liquid::Any) | Range(Int32, Int32), parentloop : Nil | Liquid::ForLoop) #

[View source]

Instance Method Detail

def call(method : String) : Liquid::Any #
Description copied from class Liquid::Drop

Called by StackMachine to call a method from this Drop. Only public methods without parameters can be called here


def each(&) #

[View source]
def first #

[View source]
def index #

[View source]
def index0 : Int32 #

[View source]
def last #

[View source]
def length #

[View source]
def parentloop #

[View source]
def parentloop=(parentloop : Nil | Liquid::ForLoop) #

[View source]
def rindex #

[View source]
def rindex0 #

[View source]