Class: AttrSearchableGrammar::OrExpression
- Inherits:
-
BaseNode
- Object
- Treetop::Runtime::SyntaxNode
- BaseNode
- AttrSearchableGrammar::OrExpression
show all
- Defined in:
- lib/attr_searchable_grammar.rb
Instance Attribute Summary
Attributes inherited from BaseNode
#model
Instance Method Summary
collapse
Methods inherited from BaseNode
#collection_for, #elements
Instance Method Details
#evaluate ⇒ Object
102
103
104
|
# File 'lib/attr_searchable_grammar.rb', line 102
def evaluate
[elements.first.evaluate, elements.last.evaluate].inject(:or)
end
|