Module: Laborantin::Metaprog::Resolutions::InstanceMethods

Included in:
Laborantin::Metaprog::Resolutions
Defined in:
lib/laborantin/core/resolutions.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#resolutionsObject

Returns the value of attribute resolutions.



6
7
8
# File 'lib/laborantin/core/resolutions.rb', line 6

def resolutions
  @resolutions
end

Instance Method Details

#resolve(name = nil, &blk) ⇒ Object



12
13
14
15
16
# File 'lib/laborantin/core/resolutions.rb', line 12

def resolve(name=nil, &blk)
  dep = Resolution.new(name, &blk)
  resolutions << dep
  dep
end

#resolve!(*ary) ⇒ Object



18
19
20
# File 'lib/laborantin/core/resolutions.rb', line 18

def resolve!(*ary)
  resolutions.map{|r| r.resolve!(*ary)}
end