Class: Renderer::Entities::Module

Inherits:
Container show all
Defined in:
lib/renderer/entities/module.rb

Instance Attribute Summary

Attributes inherited from Container

#classes, #constants, #defined_by, #defs, #doc, #extends, #includes, #modules, #sdefs

Attributes inherited from Base

#name, #parent, #references

Instance Method Summary collapse

Methods inherited from Container

#find_nested_container, #init_entities, #init_reference, #init_reference!, #init_references!, #resolve_class_path

Methods inherited from Base

#class?, #def?, #full_path, #inspect, #module?, #register_reference, #root, #root?, #static?, #to_s

Constructor Details

#initialize(parent, model) ⇒ Module

Returns a new instance of Module.



8
9
10
11
12
13
14
# File 'lib/renderer/entities/module.rb', line 8

def initialize(parent, model)
  if parent.nil?
    as_root { super }
  else
    super
  end
end

Instance Method Details

#resolve_references!Object



16
# File 'lib/renderer/entities/module.rb', line 16

def resolve_references! = @references.each(&:resolve!)

#typeObject



6
# File 'lib/renderer/entities/module.rb', line 6

def type = :module