module Hypo::Scope

Attributes

instances[R]

Public Instance Methods

purge() click to toggle source
# File lib/hypo/scope.rb, line 9
def purge
  begin
    @instances.each_value do |instance|
      instance.finalize if instance.respond_to? :finalize
    end
  ensure
    @instances = Hash.new
  end
end
release() click to toggle source
# File lib/hypo/scope.rb, line 5
def release
  @container.lifetimes[:scope].purge(self)
end