Class: Apipie::Markup::Textile

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

Instance Method Summary collapse

Constructor Details

#initializeTextile

Returns a new instance of Textile.



40
41
42
# File 'lib/apipie/markup.rb', line 40

def initialize
  require 'RedCloth'
end

Instance Method Details

#to_html(text) ⇒ Object



44
45
46
# File 'lib/apipie/markup.rb', line 44

def to_html(text)
  RedCloth.new(text).to_html
end