class Marten::Template::Condition::Token::Operator::Infix
- Marten::Template::Condition::Token::Operator::Infix
- Marten::Template::Condition::Token::Base
- Reference
- Object
Overview
An infix operator token.
Direct Known Subclasses
- Marten::Template::Condition::Token::Operator::And
- Marten::Template::Condition::Token::Operator::Equal
- Marten::Template::Condition::Token::Operator::GreaterThan
- Marten::Template::Condition::Token::Operator::GreaterThanOrEqual
- Marten::Template::Condition::Token::Operator::In
- Marten::Template::Condition::Token::Operator::LessThan
- Marten::Template::Condition::Token::Operator::LessThanOrEqual
- Marten::Template::Condition::Token::Operator::NotEqual
- Marten::Template::Condition::Token::Operator::Or
Defined in:
marten/template/condition/token/operator/infix.crInstance Method Summary
-
#eval(context : Context) : Marten::Template::Value
Evaluates the token for a given context.
- #first : Marten::Template::Condition::Token::Base?
-
#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)
Implements the infix handler and returns a resulting token.
- #second : Marten::Template::Condition::Token::Base?
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
Description copied from class Marten::Template::Condition::Token::Base
Evaluates the token for a given context.
def id : String
#
Description copied from class Marten::Template::Condition::Token::Base
Returns the ID of the token.
def lbp : UInt8
#
Description copied from class Marten::Template::Condition::Token::Base
Returns the left binding power of the token.
Description copied from class Marten::Template::Condition::Token::Base
Implements the infix handler and returns a resulting token.