Class: FilterLexer::Group

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/filter_lexer/nodes/collections.rb,
lib/filter_lexer/formatters/sql.rb

Overview

A group is simply an expression in parenthesis

Instance Method Summary collapse

Instance Method Details

#query_stringObject



17
18
19
# File 'lib/filter_lexer/formatters/sql.rb', line 17

def query_string
	return "(#{elements.first.query_string})"
end

#query_variablesObject



21
22
23
# File 'lib/filter_lexer/formatters/sql.rb', line 21

def query_variables
	return elements.first.query_variables
end