Class: Jaina::Parser::Expression::Operator::And Private
- Inherits:
-
NonTerminal
- Object
- Abstract
- NonTerminal
- Jaina::Parser::Expression::Operator::And
- Defined in:
- lib/jaina/parser/expression/operator/and.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Constant Summary
Constants inherited from Abstract
Jaina::Parser::Expression::Operator::Abstract::Error, Jaina::Parser::Expression::Operator::Abstract::InompatibleDirectionComparisonError
Constants included from Jaina::Parser::Expression::Operator::Abstract::DSL
Jaina::Parser::Expression::Operator::Abstract::DSL::Error, Jaina::Parser::Expression::Operator::Abstract::DSL::IncorrectAssociativityDirectionError, Jaina::Parser::Expression::Operator::Abstract::DSL::IncorrectPrecedenceLevelError, Jaina::Parser::Expression::Operator::Abstract::DSL::IncorrectTokenError, Jaina::Parser::Expression::Operator::Abstract::DSL::LEFT_ASSOC, Jaina::Parser::Expression::Operator::Abstract::DSL::RIGHT_ASSOC
Instance Attribute Summary
Attributes inherited from Abstract
Instance Method Summary collapse
- #evaluate(context) ⇒ Any private
- #left_expression ⇒ Jaina::Parser::Expression::Operator::Abstract private
- #right_expression ⇒ Jaina::Parser::Expression::Operator::Abstract private
Methods inherited from NonTerminal
Methods inherited from Abstract
Methods included from Jaina::Parser::Expression::Operator::Abstract::DSL
Constructor Details
This class inherits a constructor from Jaina::Parser::Expression::Operator::Abstract
Instance Method Details
#evaluate(context) ⇒ Any
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/jaina/parser/expression/operator/and.rb', line 17 def evaluate(context) left_expression.evaluate(context) && right_expression.evaluate(context) end |
#left_expression ⇒ Jaina::Parser::Expression::Operator::Abstract
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 |
# File 'lib/jaina/parser/expression/operator/and.rb', line 25 def left_expression expressions[0] end |
#right_expression ⇒ Jaina::Parser::Expression::Operator::Abstract
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
33 34 35 |
# File 'lib/jaina/parser/expression/operator/and.rb', line 33 def right_expression expressions[1] end |