Class: HtmlToSliml
- Inherits:
-
Object
- Object
- HtmlToSliml
- Defined in:
- lib/html_to_sliml.rb
Instance Attribute Summary collapse
-
#to_s ⇒ Object
readonly
Returns the value of attribute to_s.
Instance Method Summary collapse
-
#initialize(html) ⇒ HtmlToSliml
constructor
A new instance of HtmlToSliml.
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_s ⇒ Object (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 |