Class: Tablerize::RawHtmlElement

Inherits:
HtmlElement show all
Defined in:
lib/tablerize/html_element.rb

Overview

A RawHtmlElement represents arbitrary HTML.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ RawHtmlElement

Returns a new instance of RawHtmlElement.



12
13
14
# File 'lib/tablerize/html_element.rb', line 12

def initialize(html)
  @html = html
end

Instance Attribute Details

#htmlObject (readonly) Also known as: to_html

Returns the value of attribute html.



9
10
11
# File 'lib/tablerize/html_element.rb', line 9

def html
  @html
end