Module: OrgParse

Defined in:
lib/org-parse.rb,
lib/org-parse/node.rb,
lib/org-parse/utils.rb,
lib/org-parse/visitor.rb,
lib/org-parse/inline-parser.rb,
lib/org-parse/struct-parser.rb,
lib/org-parse/struct-scanner.rb,
lib/org-parse/textile-visitor.rb,
lib/org-parse/inline-parser.tab.rb,
lib/org-parse/struct-parser.tab.rb

Defined Under Namespace

Modules: InlineUtils, Utils, VisitorUtils Classes: BlockNode, HeadlineNode, HtmlVisitor, InlineParser, LinkNode, ListitemNode, Node, OrgVisitor, RootNode, SectionNode, StructParser, StructScanner, TableNode, TableRowNode, TextileVisitor, TextlineNode, VarNode, WhitelineNode

Constant Summary collapse

VERSION =

:stopdoc:

'0.1.2'
LIBPATH =
::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
PATH =
::File.dirname(LIBPATH) + ::File::SEPARATOR

Class Method Summary collapse

Class Method Details

.libpath(*args) ⇒ Object

Returns the library path for the module. If any arguments are given, they will be joined to the end of the libray path using File.join.



22
23
24
# File 'lib/org-parse.rb', line 22

def self.libpath( *args )
  args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten)
end

.path(*args) ⇒ Object

Returns the lpath for the module. If any arguments are given, they will be joined to the end of the path using File.join.



30
31
32
# File 'lib/org-parse.rb', line 30

def self.path( *args )
  args.empty? ? PATH : ::File.join(PATH, args.flatten)
end

.to_html(fname) ⇒ Object



34
35
36
# File 'lib/org-parse.rb', line 34

def self.to_html(fname)
  parser = StructParser.new(fname)
end

.versionObject

Returns the version string for the library.



14
15
16
# File 'lib/org-parse.rb', line 14

def self.version
  VERSION
end