Class: Restapi::Markup::Textile
- Inherits:
-
Object
- Object
- Restapi::Markup::Textile
- Defined in:
- lib/restapi/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.
34 35 36 |
# File 'lib/restapi/markup.rb', line 34 def initialize require 'RedCloth' end |
Instance Method Details
#to_html(text) ⇒ Object
38 39 40 |
# File 'lib/restapi/markup.rb', line 38 def to_html(text) RedCloth.new(text).to_html end |