Class: Formdown::Renderer
- Inherits:
-
Object
- Object
- Formdown::Renderer
- Defined in:
- lib/formdown/renderer.rb
Instance Method Summary collapse
-
#initialize(content) ⇒ Renderer
constructor
A new instance of Renderer.
- #to_html ⇒ Object
Constructor Details
#initialize(content) ⇒ Renderer
Returns a new instance of Renderer.
7 8 9 |
# File 'lib/formdown/renderer.rb', line 7 def initialize(content) @document = ::Kramdown::Document.new(content, input: 'Formdown') end |
Instance Method Details
#to_html ⇒ Object
11 12 13 |
# File 'lib/formdown/renderer.rb', line 11 def to_html @document.to_html end |