Class: Facwparser::Element::NoformatMacro
- Inherits:
-
MacroBase
- Object
- ElementBase
- MacroBase
- Facwparser::Element::NoformatMacro
- Defined in:
- lib/facwparser/element.rb
Instance Attribute Summary
Attributes inherited from ElementBase
Instance Method Summary collapse
-
#initialize(source, value) ⇒ NoformatMacro
constructor
A new instance of NoformatMacro.
- #render_html(options) ⇒ Object
Methods inherited from ElementBase
Constructor Details
#initialize(source, value) ⇒ NoformatMacro
Returns a new instance of NoformatMacro.
195 196 197 198 |
# File 'lib/facwparser/element.rb', line 195 def initialize(source, value) super(source) @value = value end |
Instance Method Details
#render_html(options) ⇒ Object
199 200 201 |
# File 'lib/facwparser/element.rb', line 199 def render_html() render_html_by_name_and_value(['pre', {'class' => 'noformat'}] , @value) + "\n" end |