Class: AutoC::Entity::DependencySet

Inherits:
Set
  • Object
show all
Defined in:
lib/autoc/module.rb

Instance Method Summary collapse

Constructor Details

#initialize(entity) ⇒ DependencySet

Returns a new instance of DependencySet.



385
386
387
388
# File 'lib/autoc/module.rb', line 385

def initialize(entity)
  super()
  @entity = entity
end

Instance Method Details

#<<(x) ⇒ Object



390
391
392
393
# File 'lib/autoc/module.rb', line 390

def <<(x)
  @entity.references << x # Each dependency is also registered as a reference
  super
end