Class: ColInfo
- Inherits:
-
Object
- Object
- ColInfo
- Defined in:
- lib/tableizer/data_table.rb
Instance Attribute Summary collapse
-
#col_type ⇒ Object
Returns the value of attribute col_type.
-
#header ⇒ Object
readonly
Returns the value of attribute header.
-
#width ⇒ Object
Returns the value of attribute width.
Instance Method Summary collapse
-
#initialize(header, col_type = nil, width = 0) ⇒ ColInfo
constructor
A new instance of ColInfo.
Constructor Details
#initialize(header, col_type = nil, width = 0) ⇒ ColInfo
Returns a new instance of ColInfo.
5 6 7 8 9 |
# File 'lib/tableizer/data_table.rb', line 5 def initialize(header, col_type = nil, width = 0) @header = header @col_type = col_type @width = width end |
Instance Attribute Details
#col_type ⇒ Object
Returns the value of attribute col_type.
3 4 5 |
# File 'lib/tableizer/data_table.rb', line 3 def col_type @col_type end |
#header ⇒ Object (readonly)
Returns the value of attribute header.
2 3 4 |
# File 'lib/tableizer/data_table.rb', line 2 def header @header end |
#width ⇒ Object
Returns the value of attribute width.
3 4 5 |
# File 'lib/tableizer/data_table.rb', line 3 def width @width end |