Class: OrgMode::NodeParser

Inherits:
Object
  • Object
show all
Defined in:
lib/org_mode/parser.rb

Class Method Summary collapse

Class Method Details

.parse(title, content) ⇒ Object

Public: Parses a node in the org-mode file-format

title - a org-mode title, can contain date, todo statusses, tags

everything specified in the org-mod file format

content - the content block, which can also contain org-mode format

Return a OrgMode::Node containing all parsable information



92
93
94
95
96
97
98
# File 'lib/org_mode/parser.rb', line 92

def parse(title,content)
  node = OrgMode::Node.new
  parse_title(node, title)
  parse_extract_dates(node)
  parse_content(node, content)
  node
end