Class: Facwparser::Element::JiraMacro
- Inherits:
-
MacroBase
- Object
- ElementBase
- MacroBase
- Facwparser::Element::JiraMacro
- 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) ⇒ JiraMacro
constructor
A new instance of JiraMacro.
- #render_html(options) ⇒ Object
Methods inherited from ElementBase
Constructor Details
#initialize(source, options) ⇒ JiraMacro
Returns a new instance of JiraMacro.
304 305 306 307 |
# File 'lib/facwparser/element.rb', line 304 def initialize(source, ) super(source) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
303 304 305 |
# File 'lib/facwparser/element.rb', line 303 def @options end |
Instance Method Details
#render_html(options) ⇒ Object
308 309 310 311 |
# File 'lib/facwparser/element.rb', line 308 def render_html() jira_browse_url = ( && ['jira_browse_url']) || '' return '<a href="' + CGI.escapeHTML(jira_browse_url + @options) +'">' + CGI.escapeHTML(@options) + '</a>' end |