class MinimalMarkdown::HtmlRenderer

Attributes

tree[R]

Public Class Methods

new(tree) click to toggle source
# File lib/minimal_markdown/html_renderer.rb, line 5
def initialize(tree)
  @tree = tree
end

Public Instance Methods

render() click to toggle source
# File lib/minimal_markdown/html_renderer.rb, line 9
def render
  output = ''
  tree.each { |node| node.render(output) }
  output
end