Class: RD::RDTree

Inherits:
Tree
  • Object
show all
Defined in:
lib/rd2odt/rdtool/rd/rdfmt.rb

Overview

for backward-compatibility.

Constant Summary

Constants inherited from Tree

Tree::SYSTEM_NAME, Tree::SYSTEM_VERSION, Tree::TMP_DIR, Tree::VERSION

Instance Attribute Summary

Attributes inherited from Tree

#document_struct, #filters, #include_paths, #root, #tmp_dir

Instance Method Summary collapse

Methods inherited from Tree

#accept, #check_valid, #each_element, #make_root, new_from_rdo, new_with_document_struct, #parse, #set_root, tmp_dir, #tree, version

Constructor Details

#initialize(src_str, include_paths = [], do_parse = true) ⇒ RDTree

Returns a new instance of RDTree.



8
9
10
11
# File 'lib/rd2odt/rdtool/rd/rdfmt.rb', line 8

def initialize(src_str, include_paths = [], do_parse = true)
  super(DocumentStructure::RD, src_str, include_paths)
  parse() if do_parse
end