-
-
Save csexton/8be3b7433f9de8d1a452 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Foo | |
def initialize | |
ObjectSpace.define_finalizer(self, proc {|id| puts "Finalizer one on #{id}" }) | |
end | |
end | |
f = Foo.new | |
f = nil |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This code:
yields this output for me:
Does it do something different for you?