abstract class Marten::Template::Condition::Token::Base

Overview

The base condition token class.

Direct Known Subclasses

Defined in:

marten/template/condition/token/base.cr

Instance Method Summary

Instance Method Detail

abstract def eval(context : Context) : Marten::Template::Value #

Evaluates the token for a given context.


[View source]
abstract def id : String #

Returns the ID of the token.


[View source]
abstract def lbp : UInt8 #

Returns the left binding power of the token.


[View source]
def led(condition : Condition, left : Condition::Token::Base) : Condition::Token::Base #

Implements the infix handler and returns a resulting token.


[View source]
def nud(condition : Condition) : Condition::Token::Base #

Implements the prefix handler and returns a resulting token.


[View source]
def to_s(io) #

[View source]