class Poro::ContextFactories::NamespaceFactory::CacheNode

The internal class used to manage the namespace tree. This should never be used outside of this factory.

This class stores the child notes for the namespace, as well as the factory for this level in the namespace.

Attributes

children[R]

Returns the children–as a hash. The keys are the module/class name, and the values are the associated child node.

This is the raw hash and can be manipulated directly.

factory[RW]

Returns the factory for this node, or nil if there is none.

Public Class Methods

new() click to toggle source

Initialize an empty node.

# File lib/poro/context_factories/namespace_factory.rb, line 93
def initialize
  @children = {}
  @factory = nil
end

Public Instance Methods

to_s() click to toggle source
# File lib/poro/context_factories/namespace_factory.rb, line 110
def to_s
  return {:factory => factory, :children => children}.inspect
end