ObjectSpace methods understanding

Can anyone give me a good example to understand this method ?

http://ruby-doc.org/core-2.0/ObjectSpace.html#method-c-define_finalizer

ObjectSpace::define_finalizer(obj, aProc=proc())

http://www.mikeperham.com/2010/02/24/the-trouble-with-ruby-finalizers/