Class: Restapi::Markup::Textile

Inherits:
Object
  • Object
show all
Defined in:
lib/restapi/markup.rb

Instance Method Summary collapse

Constructor Details

#initializeTextile

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