Class: TestStepNumberColumn
- Inherits:
-
ControlledTableColumn
- Object
- TextLine
- ControlledTableColumn
- TestStepNumberColumn
- Defined in:
- lib/almirah/doc_items/controlled_table.rb
Instance Attribute Summary collapse
-
#row_id ⇒ Object
Returns the value of attribute row_id.
-
#step_number ⇒ Object
Returns the value of attribute step_number.
Attributes inherited from ControlledTableColumn
Instance Method Summary collapse
-
#initialize(text) ⇒ TestStepNumberColumn
constructor
A new instance of TestStepNumberColumn.
- #to_html ⇒ Object
Methods inherited from TextLine
add_lazy_doc_id, #bold, #bold_and_italic, #change_state, #format_string, #italic, #link
Constructor Details
#initialize(text) ⇒ TestStepNumberColumn
29 30 31 32 33 34 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 29 def initialize(text) text = text.strip @step_number = text.to_i @text = text @row_id = "" end |
Instance Attribute Details
#row_id ⇒ Object
Returns the value of attribute row_id.
27 28 29 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 27 def row_id @row_id end |
#step_number ⇒ Object
Returns the value of attribute step_number.
26 27 28 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 26 def step_number @step_number end |
Instance Method Details
#to_html ⇒ Object
36 37 38 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 36 def to_html "\t\t<td style=\"text-align: center;\"><a name=\"#{@row_id}\" id=\"#{@row_id}\" href=\"##{@row_id}\">#{@text}</a></td>\n\r" end |