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.
311 312 313 314 |
# File 'lib/facwparser/element.rb', line 311 def initialize(source, ) super(source) @options = end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
310 311 312 |
# File 'lib/facwparser/element.rb', line 310 def @options end |
Instance Method Details
#render_html(options) ⇒ Object
315 316 317 318 |
# File 'lib/facwparser/element.rb', line 315 def render_html() jira_browse_url = ( && ['jira_browse_url']) || '' render_html_by_name_and_value(['a', {'href' => jira_browse_url + @options}], @options) end |