Class: ControlledTableColumn
- Defined in:
- lib/almirah/doc_items/controlled_table.rb
Direct Known Subclasses
RegualrColumn, TestStepNumberColumn, TestStepReferenceColumn, TestStepResultColumn
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ ControlledTableColumn
constructor
A new instance of ControlledTableColumn.
- #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) ⇒ ControlledTableColumn
8 9 10 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 8 def initialize(text) @text = text.strip end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
6 7 8 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 6 def text @text end |
Instance Method Details
#to_html ⇒ Object
12 13 14 15 |
# File 'lib/almirah/doc_items/controlled_table.rb', line 12 def to_html f_text = format_string(@text) "\t\t<td>#{f_text}</td>\n\r" end |