Class: SearchCopGrammar::ComparativeExpression

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

#evaluateObject



41
42
43
# File 'lib/search_cop_grammar.rb', line 41

def evaluate
  elements[0].collection.send elements[1].method_name, elements[2].text_value
end