class Marten::Template::Condition::Token::Value

Overview

A condition value token.

Defined in:

marten/template/condition/token/value.cr

Constructors

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

Constructor Detail

def self.new(source : String) #

[View source]
def self.new #

[View source]

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

Implements the prefix handler and returns a resulting token.


[View source]