class FilterLexer::Expression
The root element, expression is a collection of other expressions and and/or operators
Public Instance Methods
query_string()
click to toggle source
# File lib/filter_lexer/formatters/sql.rb, line 7 def query_string return elements.map(&:query_string).join(' ') end
query_variables()
click to toggle source
# File lib/filter_lexer/formatters/sql.rb, line 11 def query_variables return elements.map(&:query_variables).flatten end
to_query()
click to toggle source
# File lib/filter_lexer/formatters/sql.rb, line 3 def to_query return "#{query_string} #{query_variables}" end