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, #query_options
Instance Method Summary
collapse
Methods inherited from BaseNode
#collection_for, #elements
Instance Method Details
#evaluate ⇒ Object
111
112
113
|
# File 'lib/search_cop_grammar.rb', line 111
def evaluate
[elements.first.evaluate, elements.last.evaluate].inject(:and)
end
|