Class: Paperwrap::Extensions::SmartyHTML
- Inherits:
-
Object
- Object
- Paperwrap::Extensions::SmartyHTML
- Defined in:
- lib/paperwrap/extensions/smarty_html.rb
Instance Method Summary collapse
-
#initialize(html, options = [1]) ⇒ SmartyHTML
constructor
A new instance of SmartyHTML.
- #to_html ⇒ Object
Constructor Details
#initialize(html, options = [1]) ⇒ SmartyHTML
Returns a new instance of SmartyHTML.
6 7 8 |
# File 'lib/paperwrap/extensions/smarty_html.rb', line 6 def initialize(html, =[1]) @pants = RubyPants.new html, end |
Instance Method Details
#to_html ⇒ Object
10 11 12 |
# File 'lib/paperwrap/extensions/smarty_html.rb', line 10 def to_html @pants.to_html end |