Class: Rgviz::ColumnsContainer
- Inherits:
-
Object
- Object
- Rgviz::ColumnsContainer
- Defined in:
- lib/rgviz/nodes.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
Instance Method Summary collapse
-
#initialize ⇒ ColumnsContainer
constructor
A new instance of ColumnsContainer.
- #to_s ⇒ Object
Constructor Details
#initialize ⇒ ColumnsContainer
Returns a new instance of ColumnsContainer.
56 57 58 |
# File 'lib/rgviz/nodes.rb', line 56 def initialize @columns = [] end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
54 55 56 |
# File 'lib/rgviz/nodes.rb', line 54 def columns @columns end |
Instance Method Details
#to_s ⇒ Object
60 61 62 |
# File 'lib/rgviz/nodes.rb', line 60 def to_s @columns.map(&:to_s).join(', ') end |