Class: Shades::QueryGrammar::QueryNode

Inherits:
Treetop::Runtime::SyntaxNode
  • Object
show all
Defined in:
lib/shades/queryparser.rb

Instance Method Summary collapse

Instance Method Details

#categorization_nodesObject



10
11
12
# File 'lib/shades/queryparser.rb', line 10

def categorization_nodes
  categorization_list.to_a
end

#rollup_nodesObject



6
7
8
# File 'lib/shades/queryparser.rb', line 6

def rollup_nodes
  rollup_list.to_a
end

#sorting_nodesObject



14
15
16
17
18
19
20
# File 'lib/shades/queryparser.rb', line 14

def sorting_nodes
  if optional_sorting.respond_to?(:sorting_list)
    optional_sorting.sorting_list.to_a
  else
    []
  end
end