Class: Estreet::LogicalExpression
- Inherits:
-
BinaryExpression
- Object
- Node
- Expression
- BinaryExpression
- Estreet::LogicalExpression
- Defined in:
- lib/estreet/binary_expression.rb
Instance Attribute Summary
Attributes inherited from Node
Instance Method Summary collapse
-
#initialize(operator, left, right) ⇒ LogicalExpression
constructor
A new instance of LogicalExpression.
Methods inherited from BinaryExpression
Methods inherited from Expression
#[], #call, coerce, #property, #to_expression, #to_statement
Methods inherited from Node
Constructor Details
#initialize(operator, left, right) ⇒ LogicalExpression
Returns a new instance of LogicalExpression.
21 22 23 24 25 26 27 |
# File 'lib/estreet/binary_expression.rb', line 21 def initialize(operator, left, right) Estreet.assert_valid_operator(LOGICAL_OPERATORS, operator) @operator = operator @left = left.to_expression @right = right.to_expression end |