Class: Facwparser::Element::JiraMacro

Inherits:
MacroBase show all
Defined in:
lib/facwparser/element.rb

Instance Attribute Summary collapse

Attributes inherited from ElementBase

#children, #source

Instance Method Summary collapse

Methods inherited from ElementBase

#==, #render_text

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, options)
  super(source)
  @options = options
end

Instance Attribute Details

#optionsObject (readonly)

Returns the value of attribute options.



310
311
312
# File 'lib/facwparser/element.rb', line 310

def options
  @options
end

Instance Method Details

#render_html(options) ⇒ Object



315
316
317
318
# File 'lib/facwparser/element.rb', line 315

def render_html(options)
  jira_browse_url = (options && options['jira_browse_url']) || ''
  render_html_by_name_and_value(['a', {'href' => jira_browse_url + @options}], @options)
end