class Liquid::Block::If

Defined in:

liquid/blocks/if.cr

Constant Summary

SIMPLE_EXP = /^\s*if (?<expr>.+)\s*$/

Constructors

Instance Method Summary

Class methods inherited from class Liquid::Block::BeginBlock

type : BlockType type

Instance methods inherited from class Liquid::Block::Node

<<(node : Node) <<, ==(other : self) ==, accept(visitor : Visitor) accept, children : Array(Liquid::Block::Node) children

Constructor methods inherited from class Liquid::Block::Node

new(content : String) new

Constructor Detail

def self.new(content : String) #

[View source]
def self.new(if_expression : Nil | Liquid::Block::Expression) #

[View source]

Instance Method Detail

def <<(node : ElsIf) #

[View source]
def <<(node : Else) #

[View source]
def <<(node : Node) #

[View source]
def ==(other : self) #
Description copied from class Reference

Returns true if this reference is the same as other. Invokes same?.


[View source]
def else : Liquid::Block::Else? #

[View source]
def elsif : Array(Liquid::Block::ElsIf)? #

[View source]
def if_expression : Liquid::Block::Expression? #

[View source]