WebRI  WebRI::Heirarchy

[Validate]
Generated with WebRI Redfish 1.2

Attributes

name[R]

(Not documented)

parent[R]

(Not documented)

subspaces[R]

(Not documented)

instance_methods[R]

(Not documented)

class_methods[R]

(Not documented)

Public Class Methods

new(name, parent=nil) click to toggle source

(Not documented)

# File lib/webri/server/heirarchy.rb, line 32
    def initialize(name, parent=nil)
      @name = name
      @parent = parent if Heirarchy===parent
      @subspaces = {}
      @class_methods = []
      @instance_methods = []
    end

Public Instance Methods

[](name) click to toggle source

(Not documented)

# File lib/webri/server/heirarchy.rb, line 44
    def [](name)
      @subspaces[name]
    end
[]=(name, value) click to toggle source

(Not documented)

# File lib/webri/server/heirarchy.rb, line 48
    def []=(name, value)
      @subspaces[name] = value
    end
file_name() click to toggle source

Path name for a given class, module or method.

# File lib/webri/server/heirarchy.rb, line 66
    def file_name
    #  file = full_name
    #  file = file.gsub('::', '/')
    #  file = file.gsub('#' , '/')
    #  file = file.gsub('.' , '-')
    #  #file = File.join(output, file + '.html')
    #  file
      WebRI.entry_to_path(full_name)
    end
full_name() click to toggle source

(Not documented)

# File lib/webri/server/heirarchy.rb, line 56
    def full_name
      if root?
        nil
      else
        [parent.full_name, name].compact.join("::")
      end
    end
inspect() click to toggle source
# File lib/webri/server/heirarchy.rb, line 77
    def inspect
      "<#{self.class} #{name}>"
    end
key() click to toggle source

(Not documented)

# File lib/webri/server/heirarchy.rb, line 40
    def key
      full_name
    end
root?() click to toggle source

(Not documented)

# File lib/webri/server/heirarchy.rb, line 52
    def root?
      !parent
    end

Disabled; run with --debug to generate this.