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.
323 324 325 326 |
# File 'lib/facwparser/element.rb', line 323 def initialize(source, ) super(source) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
322 323 324 |
# File 'lib/facwparser/element.rb', line 322 def @options end |
Instance Method Details
#render_html(options) ⇒ Object
327 328 329 |
# File 'lib/facwparser/element.rb', line 327 def render_html() return '<span style="color: ' + CGI.escapeHTML(@options) +'">' end |