Class: Formatters::Markdown

Inherits:
Object
  • Object
show all
Defined in:
lib/bkmrq/formatters/markdown.rb

Overview

Markdown Formatter

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.format(tree) ⇒ Object



12
13
14
# File 'lib/bkmrq/formatters/markdown.rb', line 12

def self.format(tree)
  new.format!(tree)
end

Instance Method Details

#format!(tree) ⇒ Object



16
17
18
# File 'lib/bkmrq/formatters/markdown.rb', line 16

def format!(tree)
  format((method(:add_doc_title) >> method(:add_header_image)).call([]), tree)
end