ObjectSpace methods understanding

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

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


Dheeraj K.