Class: Facwparser::Element::QuoteMacro

Inherits:
MacroBase show all
Defined in:
lib/facwparser/element.rb

Instance Attribute Summary

Attributes inherited from ElementBase

#children, #source

Instance Method Summary collapse

Methods inherited from ElementBase

#==, #render_text

Constructor Details

#initialize(source, value) ⇒ QuoteMacro

Returns a new instance of QuoteMacro.



213
214
215
216
# File 'lib/facwparser/element.rb', line 213

def initialize(source, value)
  super(source)
  @value = value
end

Instance Method Details

#render_html(options) ⇒ Object



217
218
219
220
221
# File 'lib/facwparser/element.rb', line 217

def render_html(options)
  "<blockquote>\n" +
    render_html_by_name_and_value('p', @value).gsub("\n", '<br>') + "\n" +
    "</blockquote>\n"
end