Class: Tablecon::Cell
- Inherits:
-
Object
- Object
- Tablecon::Cell
- Defined in:
- lib/tablecon.rb
Instance Attribute Summary collapse
-
#column ⇒ Object
Returns the value of attribute column.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Method Summary collapse
-
#initialize(column, value) ⇒ Cell
constructor
A new instance of Cell.
- #width ⇒ Object
Constructor Details
#initialize(column, value) ⇒ Cell
Returns a new instance of Cell.
119 120 121 122 |
# File 'lib/tablecon.rb', line 119 def initialize column, value @column = column @value = value end |
Instance Attribute Details
#column ⇒ Object
Returns the value of attribute column.
118 119 120 |
# File 'lib/tablecon.rb', line 118 def column @column end |
#value ⇒ Object
Returns the value of attribute value.
118 119 120 |
# File 'lib/tablecon.rb', line 118 def value @value end |
Instance Method Details
#width ⇒ Object
123 124 125 |
# File 'lib/tablecon.rb', line 123 def width @column.length end |