Method: YARD::CodeObjects::NamespaceObject#initialize
- Defined in:
- lib/yard/code_objects/namespace_object.rb
#initialize(namespace, name, *args, &block) ⇒ NamespaceObject
Creates a new namespace object inside namespace
with name
.
56 57 58 59 60 61 62 63 64 |
# File 'lib/yard/code_objects/namespace_object.rb', line 56 def initialize(namespace, name, *args, &block) @children = CodeObjectList.new(self) @class_mixins = CodeObjectList.new(self) @instance_mixins = CodeObjectList.new(self) @attributes = SymbolHash[:class => SymbolHash.new, :instance => SymbolHash.new] @aliases = {} @groups = [] super end |