Class: Predicator::AST::Binary
Direct Known Subclasses
And, DateEqual, DateGreaterThan, DateLessThan, IntegerEqual, IntegerGreaterThan, IntegerIn, IntegerLessThan, IntegerNotIn, Or, StringEndsWith, StringEqual, StringGreaterThan, StringIn, StringLessThan, StringNotIn, StringStartsWith
Instance Attribute Summary collapse
-
#right ⇒ Object
Returns the value of attribute right.
Attributes inherited from Node
Instance Method Summary collapse
- #children ⇒ Object
-
#initialize(left, right) ⇒ Binary
constructor
A new instance of Binary.
Methods inherited from Node
#each, #literal?, #to_dot, #to_instructions, #to_s, #type, #variable?
Constructor Details
#initialize(left, right) ⇒ Binary
Returns a new instance of Binary.
89 90 91 92 |
# File 'lib/predicator/ast.rb', line 89 def initialize left, right super left @right = right end |
Instance Attribute Details
#right ⇒ Object
Returns the value of attribute right.
87 88 89 |
# File 'lib/predicator/ast.rb', line 87 def right @right end |
Instance Method Details
#children ⇒ Object
94 |
# File 'lib/predicator/ast.rb', line 94 def children; [left, right] end |