Module: Main::Program::InstanceMethods

Defined in:
lib/ruboto/util/main_fix.rb

Instance Method Summary collapse

Instance Method Details

#setup_finalizersObject



5
6
7
8
9
10
# File 'lib/ruboto/util/main_fix.rb', line 5

def setup_finalizers
  @finalizers ||= []
  ObjectSpace.define_finalizer(self) do
    while((f = @finalizers.pop)); f.call; end
  end
end