Class: Irwi::Formatters::RedCloth
- Inherits:
-
Object
- Object
- Irwi::Formatters::RedCloth
- Defined in:
- lib/irwi/formatters/red_cloth.rb
Instance Method Summary collapse
- #format(text) ⇒ Object
-
#initialize ⇒ RedCloth
constructor
A new instance of RedCloth.
Constructor Details
#initialize ⇒ RedCloth
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 |