class Marten::Template::Condition::Token::Operator::Equal

Overview

An equal - == - operator token.

Defined in:

marten/template/condition/token/operator/equal.cr

Instance Method Summary

Instance methods inherited from class Marten::Template::Condition::Token::Operator::Infix

eval(context : Context) : Marten::Template::Value eval, first : Marten::Template::Condition::Token::Base? first, id : String id, lbp : UInt8 lbp, led(condition : Condition, left : Condition::Token::Base) led, second : Marten::Template::Condition::Token::Base? second

Instance methods inherited from class Marten::Template::Condition::Token::Base

eval(context : Context) : Marten::Template::Value eval, id : String id, lbp : UInt8 lbp, led(condition : Condition, left : Condition::Token::Base) : Condition::Token::Base led, nud(condition : Condition) : Condition::Token::Base nud, to_s(io) to_s

Instance Method Detail

def eval(context : Context) : Marten::Template::Value #
Description copied from class Marten::Template::Condition::Token::Base

Evaluates the token for a given context.


[View source]
def id : String #
Description copied from class Marten::Template::Condition::Token::Base

Returns the ID of the token.


[View source]
def lbp : UInt8 #
Description copied from class Marten::Template::Condition::Token::Base

Returns the left binding power of the token.


[View source]