Class: Blockquote

Inherits:
DocItem show all
Defined in:
lib/almirah/doc_items/blockquote.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#textObject

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_htmlObject



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