abstract class Marten::Template::Condition::Token::Base
- Marten::Template::Condition::Token::Base
- Reference
- Object
Overview
The base condition token class.
Direct Known Subclasses
- Marten::Template::Condition::Token::End
- Marten::Template::Condition::Token::Operator::Infix
- Marten::Template::Condition::Token::Operator::Prefix
- Marten::Template::Condition::Token::Value
Defined in:
marten/template/condition/token/base.crInstance Method Summary
-
#eval(context : Context) : Marten::Template::Value
Evaluates the token for a given context.
-
#id : String
Returns the ID of the token.
-
#lbp : UInt8
Returns the left binding power of the token.
-
#led(condition : Condition, left : Condition::Token::Base) : Condition::Token::Base
Implements the infix handler and returns a resulting token.
-
#nud(condition : Condition) : Condition::Token::Base
Implements the prefix handler and returns a resulting token.
- #to_s(io)
Instance Method Detail
Evaluates the token for a given context.
Implements the infix handler and returns a resulting token.
Implements the prefix handler and returns a resulting token.