class DocuBot::LinkTree::Root

Attributes

bundle[R]

Public Class Methods

new( bundle ) click to toggle source
# File lib/docubot/link_tree.rb, line 98
def initialize( bundle )
        @bundle   = bundle
        @children = []
end

Public Instance Methods

<<( node ) click to toggle source
# File lib/docubot/link_tree.rb, line 103
def <<( node )
        node.parent = nil
        @children << node
end
to_s() click to toggle source
# File lib/docubot/link_tree.rb, line 108
def to_s
        "(Table of Contents)"
end