Class: Facwparser::Element::Image

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

Instance Attribute Summary

Attributes inherited from InlineElementBase

#text

Attributes inherited from ElementBase

#children, #source

Instance Method Summary collapse

Methods inherited from InlineElementBase

#==, #initialize

Methods inherited from ElementBase

#==, #initialize, #render_text

Constructor Details

This class inherits a constructor from Facwparser::Element::InlineElementBase

Instance Method Details

#render_html(options) ⇒ Object



304
305
306
# File 'lib/facwparser/element.rb', line 304

def render_html(options)
  '<img src="' + CGI.escapeHTML(@text) + '">'
end