Class: Klods::RawHtml

Inherits:
Object
  • Object
show all
Defined in:
lib/klods/node.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ RawHtml

Returns a new instance of RawHtml.



4
# File 'lib/klods/node.rb', line 4

def initialize(html) = @html = html.to_s

Instance Attribute Details

#htmlObject (readonly)

Returns the value of attribute html.



3
4
5
# File 'lib/klods/node.rb', line 3

def html
  @html
end

Instance Method Details

#to_sObject



5
# File 'lib/klods/node.rb', line 5

def to_s = @html

#to_strObject



6
# File 'lib/klods/node.rb', line 6

def to_str = @html