Class: Minidown::Parser
- Inherits:
-
Object
- Object
- Minidown::Parser
- Defined in:
- lib/minidown/parser.rb
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Parser
constructor
A new instance of Parser.
- #render(str) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Parser
Returns a new instance of Parser.
3 4 5 |
# File 'lib/minidown/parser.rb', line 3 def initialize = {} @options = .freeze end |
Instance Method Details
#render(str) ⇒ Object
7 8 9 |
# File 'lib/minidown/parser.rb', line 7 def render str parse(str).to_html end |