Module: Dita

Includes:
Duxml
Defined in:
lib/ruby-dita.rb

Constant Summary collapse

GRAMMAR_PATH =
File.expand_path(File.dirname(__FILE__) + '/../xml/dita_grammar.xml')

Instance Method Summary collapse

Instance Method Details

#load(path_or_doc) ⇒ Doc

Returns XML document.

Parameters:

  • path_or_doc (String)

    path of Dita file or new Doc

Returns:

  • (Doc)

    XML document



12
13
14
# File 'lib/ruby-dita.rb', line 12

def load(path_or_doc)
  super(path_or_doc, GRAMMAR_PATH)
end