Class: Irwi::Formatters::RedCloth

Inherits:
Object
  • Object
show all
Defined in:
lib/irwi/formatters/red_cloth.rb

Instance Method Summary collapse

Constructor Details

#initializeRedCloth

Returns a new instance of RedCloth.



3
4
5
# File 'lib/irwi/formatters/red_cloth.rb', line 3

def initialize
  require 'redcloth'
end

Instance Method Details

#format(text) ⇒ Object



7
8
9
# File 'lib/irwi/formatters/red_cloth.rb', line 7

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