Class: SearchCopGrammar::Nodes::Binary
- Inherits:
-
Object
- Object
- SearchCopGrammar::Nodes::Binary
- Includes:
- Base
- Defined in:
- lib/search_cop_grammar/nodes.rb
Direct Known Subclasses
Equality, Generator, GreaterThan, GreaterThanOrEqual, LessThan, LessThanOrEqual, Matches, MatchesFulltext, NotEqual
Instance Attribute Summary collapse
-
#left ⇒ Object
Returns the value of attribute left.
-
#right ⇒ Object
Returns the value of attribute right.
Instance Method Summary collapse
-
#initialize(left, right) ⇒ Binary
constructor
A new instance of Binary.
Methods included from Base
#and, #can_flatten?, #can_group?, #can_optimize?, #finalize!, #flatten!, #fulltext?, #group!, #nodes, #not, #optimize!, #or
Constructor Details
#initialize(left, right) ⇒ Binary
Returns a new instance of Binary.
62 63 64 65 |
# File 'lib/search_cop_grammar/nodes.rb', line 62 def initialize(left, right) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
60 61 62 |
# File 'lib/search_cop_grammar/nodes.rb', line 60 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
60 61 62 |
# File 'lib/search_cop_grammar/nodes.rb', line 60 def right @right end |