Sha256: 372a162d63551969bd3a0b855cfc0b16ca351773d61235673e1d3f922f488c88

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 KB

Contents

module OrgParse

  # :stopdoc:
  VERSION = '0.1.2'
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
  # :startdoc:



  # Returns the version string for the library.
  #
  def self.version
    VERSION
  end

  # Returns the library path for the module. If any arguments are given,
  # they will be joined to the end of the libray path using
  # <tt>File.join</tt>.
  #
  def self.libpath( *args )
    args.empty? ? LIBPATH : ::File.join(LIBPATH, args.flatten)
  end

  # Returns the lpath for the module. If any arguments are given,
  # they will be joined to the end of the path using
  # <tt>File.join</tt>.
  #
  def self.path( *args )
    args.empty? ? PATH : ::File.join(PATH, args.flatten)
  end

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

end  # module OrgParse

require ::File.join(OrgParse::LIBPATH , 'org-parse', 'utils.rb')
require ::File.join(OrgParse::LIBPATH , 'org-parse', 'node.rb')
require ::File.join(OrgParse::LIBPATH , 'org-parse', 'struct-scanner.rb')
require ::File.join(OrgParse::LIBPATH , 'org-parse', 'struct-parser.rb')
require ::File.join(OrgParse::LIBPATH , 'org-parse', 'visitor.rb')
require ::File.join(OrgParse::LIBPATH , 'org-parse', 'textile-visitor.rb')

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
org-parse-0.1.2 lib/org-parse.rb