Class: TableAnalysis::HeaderTd
- Inherits:
-
Object
- Object
- TableAnalysis::HeaderTd
- Defined in:
- lib/table_analysis/header.rb
Instance Attribute Summary collapse
-
#length ⇒ Object
Returns the value of attribute length.
-
#rowspan ⇒ Object
Returns the value of attribute rowspan.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(rowspan, length) ⇒ HeaderTd
constructor
A new instance of HeaderTd.
Constructor Details
#initialize(rowspan, length) ⇒ HeaderTd
19 20 21 22 |
# File 'lib/table_analysis/header.rb', line 19 def initialize(rowspan, length) @rowspan = rowspan.nil? ? 1 : rowspan.to_i @length = length.nil? ? 1 : length.to_i end |
Instance Attribute Details
#length ⇒ Object
Returns the value of attribute length.
17 18 19 |
# File 'lib/table_analysis/header.rb', line 17 def length @length end |
#rowspan ⇒ Object
Returns the value of attribute rowspan.
17 18 19 |
# File 'lib/table_analysis/header.rb', line 17 def rowspan @rowspan end |
Class Method Details
.config(rowspan, length) ⇒ Object
24 25 26 |
# File 'lib/table_analysis/header.rb', line 24 def self.config(rowspan, length) new(rowspan, length) end |