Module: SearchGrammar::Expression

Defined in:
lib/buhos/search_parser.rb

Instance Method Summary collapse

Instance Method Details

#to_arrayObject



86
87
88
# File 'lib/buhos/search_parser.rb', line 86

def to_array
  self.elements.delete_if{|v|  v.text_value=="(" or v.text_value==")" }.map {|x| (x.respond_to?(:to_array)) ? x.to_array : x.text_value}
end