Class: HTML2Slim::HTMLConverter
- Defined in:
- lib/html2slim/converter.rb
Instance Method Summary collapse
-
#initialize(html) ⇒ HTMLConverter
constructor
A new instance of HTMLConverter.
Methods inherited from Converter
Constructor Details
#initialize(html) ⇒ HTMLConverter
Returns a new instance of HTMLConverter.
10 11 12 |
# File 'lib/html2slim/converter.rb', line 10 def initialize(html) @slim = Hpricot(html).to_slim end |