Class: Transmuter::Format::Textile
- Inherits:
-
Object
- Object
- Transmuter::Format::Textile
- Defined in:
- lib/transmuter/format/textile.rb
Instance Method Summary collapse
-
#initialize(textile, options = {}) ⇒ Textile
constructor
A new instance of Textile.
- #to_html ⇒ Object
- #to_pdf ⇒ Object
Constructor Details
#initialize(textile, options = {}) ⇒ Textile
Returns a new instance of Textile.
6 7 8 9 |
# File 'lib/transmuter/format/textile.rb', line 6 def initialize(textile, = {}) () @textile = textile end |
Instance Method Details
#to_html ⇒ Object
17 18 19 20 |
# File 'lib/transmuter/format/textile.rb', line 17 def to_html html = Html.new(parse_textile, ) html.process end |
#to_pdf ⇒ Object
11 12 13 14 15 |
# File 'lib/transmuter/format/textile.rb', line 11 def to_pdf html = to_html pdf = Pdf.new(html, ) pdf.process end |