Class: Serve::TextileHandler
- Inherits:
-
FileTypeHandler
- Object
- FileTypeHandler
- Serve::TextileHandler
- Defined in:
- lib/serve/handlers/textile_handler.rb
Overview
:nodoc:
Instance Method Summary collapse
Methods inherited from FileTypeHandler
#content_type, extension, find, handlers, #initialize, #process
Constructor Details
This class inherits a constructor from Serve::FileTypeHandler
Instance Method Details
#parse(string) ⇒ Object
5 6 7 8 |
# File 'lib/serve/handlers/textile_handler.rb', line 5 def parse(string) require 'redcloth' "<html><body>#{ RedCloth.new(string).to_html }</body></html>" end |