Class: AttrSearchableGrammar::OrExpression

Inherits:
BaseNode
  • Object
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

#evaluateObject



102
103
104
# File 'lib/attr_searchable_grammar.rb', line 102

def evaluate
  [elements.first.evaluate, elements.last.evaluate].inject(:or)
end