Class: Facwparser::Element::NoformatMacro

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) ⇒ 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(options)
  render_html_by_name_and_value(['pre', {'class' => 'noformat'}] , @value) + "\n"
end