Class: UtilsDrawer::TableDrawer::Row
- Inherits:
-
Object
- Object
- UtilsDrawer::TableDrawer::Row
- Defined in:
- lib/utils_drawer/table_drawer/row.rb
Instance Attribute Summary collapse
-
#columns ⇒ Object
Returns the value of attribute columns.
Instance Method Summary collapse
- #add(column) ⇒ Object
-
#initialize ⇒ Row
constructor
A new instance of Row.
Constructor Details
#initialize ⇒ Row
Returns a new instance of Row.
6 7 8 |
# File 'lib/utils_drawer/table_drawer/row.rb', line 6 def initialize @columns = [] end |
Instance Attribute Details
#columns ⇒ Object
Returns the value of attribute columns.
4 5 6 |
# File 'lib/utils_drawer/table_drawer/row.rb', line 4 def columns @columns end |
Instance Method Details
#add(column) ⇒ Object
10 11 12 |
# File 'lib/utils_drawer/table_drawer/row.rb', line 10 def add(column) @columns << column end |