30 Days of Tech: Day 23 - DearSoul
class DearSoul
def self.new(first, last)
ObjectSpace.define_finalizer(allocate, proc {|id|
puts "Goodbye, #{first}. We'll miss you."
})
end
end
DearSoul.new("George", "Carlin")