class Marten::Template::Condition::Token::End

Overview

An end of expression token.

Defined in:

marten/template/condition/token/end.cr

Instance Method Summary

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]
def nud(condition : Condition) #
Description copied from class Marten::Template::Condition::Token::Base

Implements the prefix handler and returns a resulting token.


[View source]