Class: ColInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/tableizer/data_table.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_typeObject

Returns the value of attribute col_type.



3
4
5
# File 'lib/tableizer/data_table.rb', line 3

def col_type
  @col_type
end

#headerObject (readonly)

Returns the value of attribute header.



2
3
4
# File 'lib/tableizer/data_table.rb', line 2

def header
  @header
end

#widthObject

Returns the value of attribute width.



3
4
5
# File 'lib/tableizer/data_table.rb', line 3

def width
  @width
end