Module: Obsidian

Defined in:
lib/obsidian/parser.rb,
lib/obsidian/parser/page.rb,
lib/obsidian/parser/version.rb,
lib/obsidian/parser/markdown_parser.rb,
lib/obsidian/parser/markdown_document.rb,
lib/obsidian/parser/parsed_markdown_document.rb

Defined Under Namespace

Classes: Error, MarkdownDocument, MarkdownParser, Page, ParsedMarkdownDocument, Parser

Class Method Summary collapse

Class Method Details

.build_slug(title, parent_slug) ⇒ Object



15
16
17
# File 'lib/obsidian/parser.rb', line 15

def self.build_slug(title, parent_slug)
  (parent_slug == "") ? title : "#{parent_slug}/#{title}"
end