Class: MarkdownRails::Handler
- Inherits:
-
Object
- Object
- MarkdownRails::Handler
- Defined in:
- lib/markdown-rails/engine.rb
Instance Method Summary collapse
- #call(template, source = template.source) ⇒ Object
-
#initialize ⇒ Handler
constructor
A new instance of Handler.
Constructor Details
#initialize ⇒ Handler
Returns a new instance of Handler.
7 8 |
# File 'lib/markdown-rails/engine.rb', line 7 def initialize end |
Instance Method Details
#call(template, source = template.source) ⇒ Object
10 11 12 13 |
# File 'lib/markdown-rails/engine.rb', line 10 def call(template, source = template.source) # Return Ruby code that returns the compiled template MarkdownRails.renderer.call(source).inspect + '.html_safe' end |