Class: Apipie::Markup::Textile
- Inherits:
-
Object
- Object
- Apipie::Markup::Textile
- Defined in:
- lib/apipie/markup.rb
Instance Method Summary collapse
-
#initialize ⇒ Textile
constructor
A new instance of Textile.
- #to_html(text) ⇒ Object
Constructor Details
#initialize ⇒ Textile
Returns a new instance of Textile.
41 42 43 |
# File 'lib/apipie/markup.rb', line 41 def initialize require 'RedCloth' end |
Instance Method Details
#to_html(text) ⇒ Object
45 46 47 |
# File 'lib/apipie/markup.rb', line 45 def to_html(text) RedCloth.new(text).to_html end |