Class: HtmlToSliml

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(html) ⇒ HtmlToSliml

Returns a new instance of HtmlToSliml.



12
13
14
15
16
17
18
# File 'lib/html_to_sliml.rb', line 12

def initialize(html)

  @to_s = ''
  doc = Rexle.new(html)
  @to_s << scanbuild(doc.to_a)    

end

Instance Attribute Details

#to_sObject (readonly)

Returns the value of attribute to_s.



10
11
12
# File 'lib/html_to_sliml.rb', line 10

def to_s
  @to_s
end