Class: Paperwrap::Extensions::SmartyHTML

Inherits:
Object
  • Object
show all
Defined in:
lib/paperwrap/extensions/smarty_html.rb

Instance Method Summary collapse

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, options=[1])
  @pants = RubyPants.new html, options
end

Instance Method Details

#to_htmlObject



10
11
12
# File 'lib/paperwrap/extensions/smarty_html.rb', line 10

def to_html
  @pants.to_html
end