Class: Minidown::Parser

Inherits:
Object
  • Object
show all
Defined in:
lib/minidown/parser.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ Parser

Returns a new instance of Parser.



3
4
5
# File 'lib/minidown/parser.rb', line 3

def initialize options = {}
  @options = 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