Class: TextileEngine
- Inherits:
-
Object
- Object
- TextileEngine
- Defined in:
- lib/markd/engines.rb
Instance Method Summary collapse
-
#initialize ⇒ TextileEngine
constructor
A new instance of TextileEngine.
- #to_html(src) ⇒ Object
Constructor Details
#initialize ⇒ TextileEngine
Returns a new instance of TextileEngine.
24 25 26 |
# File 'lib/markd/engines.rb', line 24 def initialize require 'RedCloth' end |
Instance Method Details
#to_html(src) ⇒ Object
28 29 30 |
# File 'lib/markd/engines.rb', line 28 def to_html(src) RedCloth.new(src).to_html end |