Class: Facwparser::Element::QuoteMacro
- Inherits:
-
MacroBase
- Object
- ElementBase
- MacroBase
- Facwparser::Element::QuoteMacro
- Defined in:
- lib/facwparser/element.rb
Instance Attribute Summary
Attributes inherited from ElementBase
Instance Method Summary collapse
-
#initialize(source, value) ⇒ QuoteMacro
constructor
A new instance of QuoteMacro.
- #render_html(options) ⇒ Object
Methods inherited from ElementBase
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() "<blockquote>\n" + render_html_by_name_and_value('p', @value).gsub("\n", '<br>') + "\n" + "</blockquote>\n" end |