Class: AttrSearchableGrammar::Nodes::Binary
- Inherits:
-
Object
- Object
- AttrSearchableGrammar::Nodes::Binary
- Includes:
- Base
- Defined in:
- lib/attr_searchable_grammar/nodes.rb
Direct Known Subclasses
Equality, 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, #to_sql
Constructor Details
#initialize(left, right) ⇒ Binary
Returns a new instance of Binary.
67 68 69 70 |
# File 'lib/attr_searchable_grammar/nodes.rb', line 67 def initialize(left, right) @left = left @right = right end |
Instance Attribute Details
#left ⇒ Object
Returns the value of attribute left.
65 66 67 |
# File 'lib/attr_searchable_grammar/nodes.rb', line 65 def left @left end |
#right ⇒ Object
Returns the value of attribute right.
65 66 67 |
# File 'lib/attr_searchable_grammar/nodes.rb', line 65 def right @right end |