class Noteman::MDProcessor::StackRenderer

Attributes

items[R]

Public Class Methods

new() click to toggle source
Calls superclass method
# File lib/noteman/md_processor.rb, line 7
def initialize
  super
  @items = []
end

Public Instance Methods

header(title, level) click to toggle source
# File lib/noteman/md_processor.rb, line 12
def header(title, level)
  items << { :text => title, :level => level, :type => :header }
  "#{'#' * level} #{title}\n\n"
end
paragraph(text) click to toggle source
# File lib/noteman/md_processor.rb, line 17
def paragraph(text)
  items << { :text => text, :type => :paragraph }
  "#{text}\n\n"
end