Class: Rgviz::ColumnsContainer

Inherits:
Object
  • Object
show all
Defined in:
lib/rgviz/nodes.rb

Direct Known Subclasses

GroupBy, Pivot, Select

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeColumnsContainer

Returns a new instance of ColumnsContainer.



56
57
58
# File 'lib/rgviz/nodes.rb', line 56

def initialize
  @columns = []
end

Instance Attribute Details

#columnsObject

Returns the value of attribute columns.



54
55
56
# File 'lib/rgviz/nodes.rb', line 54

def columns
  @columns
end

Instance Method Details

#to_sObject



60
61
62
# File 'lib/rgviz/nodes.rb', line 60

def to_s
  @columns.map(&:to_s).join(', ')
end