Class: Diamante::Markdown

Inherits:
Object
  • Object
show all
Defined in:
lib/diamante/md/markdown.rb

Instance Method Summary collapse

Constructor Details

#initialize(filepath) ⇒ Markdown

Returns a new instance of Markdown.



5
6
7
8
# File 'lib/diamante/md/markdown.rb', line 5

def initialize(filepath)
  @filepath = filepath
  @sections = Parser.call(@filepath)
end

Instance Method Details

#showObject



10
11
12
# File 'lib/diamante/md/markdown.rb', line 10

def show
  show_sections
end