Class: Shades::QueryGrammar::RollupListNode

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

Instance Method Summary collapse

Instance Method Details

#to_aObject



24
25
26
27
28
# File 'lib/shades/queryparser.rb', line 24

def to_a
  [rollup] + rest_rollups.elements.map do |comma_and_rollup|
    comma_and_rollup.rollup
  end
end