Class: IrwiMod::Formatters::RedCloth

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

Instance Method Summary collapse

Constructor Details

#initializeRedCloth

Returns a new instance of RedCloth.



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

def initialize
  require 'RedCloth'
end

Instance Method Details

#format(text) ⇒ Object



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

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