Class: Blockquote
- Defined in:
- lib/almirah/doc_items/blockquote.rb
Instance Attribute Summary collapse
-
#text ⇒ Object
Returns the value of attribute text.
Instance Method Summary collapse
-
#initialize(text) ⇒ Blockquote
constructor
A new instance of Blockquote.
- #to_html ⇒ Object
Constructor Details
#initialize(text) ⇒ Blockquote
Returns a new instance of Blockquote.
7 8 9 |
# File 'lib/almirah/doc_items/blockquote.rb', line 7 def initialize(text) @text = text end |
Instance Attribute Details
#text ⇒ Object
Returns the value of attribute text.
5 6 7 |
# File 'lib/almirah/doc_items/blockquote.rb', line 5 def text @text end |
Instance Method Details
#to_html ⇒ Object
11 12 13 14 15 16 17 18 19 20 |
# File 'lib/almirah/doc_items/blockquote.rb', line 11 def to_html s = '' if @@htmlTableRenderInProgress s += "</table>" @@htmlTableRenderInProgress = false end s += "<p>Note: #{@text}\n\r" return s end |