Class: FilterParam::AST::Expressions::BinaryExpression
- Inherits:
-
Expression
- Object
- Node
- Expression
- FilterParam::AST::Expressions::BinaryExpression
- Defined in:
- lib/filter_param/ast/expressions.rb
Instance Attribute Summary collapse
-
#left_operand ⇒ Object
readonly
Returns the value of attribute left_operand.
-
#right_operand ⇒ Object
readonly
Returns the value of attribute right_operand.
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(operator, left_operand, right_operand) ⇒ BinaryExpression
constructor
A new instance of BinaryExpression.
Methods inherited from Node
Constructor Details
#initialize(operator, left_operand, right_operand) ⇒ BinaryExpression
Returns a new instance of BinaryExpression.
28 29 30 31 32 33 |
# File 'lib/filter_param/ast/expressions.rb', line 28 def initialize(operator, left_operand, right_operand) super(operator, left_operand, right_operand) @left_operand = left_operand @right_operand = right_operand end |
Instance Attribute Details
#left_operand ⇒ Object (readonly)
Returns the value of attribute left_operand.
26 27 28 |
# File 'lib/filter_param/ast/expressions.rb', line 26 def left_operand @left_operand end |
#right_operand ⇒ Object (readonly)
Returns the value of attribute right_operand.
26 27 28 |
# File 'lib/filter_param/ast/expressions.rb', line 26 def right_operand @right_operand end |