Class: Facwparser::Element::ColorMacroStart
- Inherits:
-
MacroBase
- Object
- ElementBase
- MacroBase
- Facwparser::Element::ColorMacroStart
- Defined in:
- lib/facwparser/element.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Attributes inherited from ElementBase
Instance Method Summary collapse
-
#initialize(source, options) ⇒ ColorMacroStart
constructor
A new instance of ColorMacroStart.
- #render_html(options) ⇒ Object
Methods inherited from ElementBase
Constructor Details
#initialize(source, options) ⇒ ColorMacroStart
Returns a new instance of ColorMacroStart.
316 317 318 319 |
# File 'lib/facwparser/element.rb', line 316 def initialize(source, ) super(source) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
315 316 317 |
# File 'lib/facwparser/element.rb', line 315 def @options end |
Instance Method Details
#render_html(options) ⇒ Object
320 321 322 |
# File 'lib/facwparser/element.rb', line 320 def render_html() return '<span style="color: ' + CGI.escapeHTML(@options) +'">' end |