Class: SearchCopGrammar::AndExpression
- Inherits:
-
BaseNode
- Object
- Treetop::Runtime::SyntaxNode
- BaseNode
- SearchCopGrammar::AndExpression
show all
- Defined in:
- lib/search_cop_grammar.rb
Instance Attribute Summary
Attributes inherited from BaseNode
#query_info
Instance Method Summary
collapse
Methods inherited from BaseNode
#collection_for, #elements
Instance Method Details
#evaluate ⇒ Object
108
109
110
|
# File 'lib/search_cop_grammar.rb', line 108
def evaluate
[elements.first.evaluate, elements.last.evaluate].inject(:and)
end
|