Become: method

In Smalltalk we can use the method become: to turn object A into object B.
A will be turned into a instance of B class and all previous references to A will now refer to B.
Is this possible in Ruby

···

Pierre Jacoboni

  • L.I.U.M - tel : 02 4383 3842 - fax : 02 4383 3868
    UNIVERSITE DU MAINE - Avenue Olivier Messiaen - 72085 LE MANS CEDEX 9
    ===============================================================
    mailto:Pierre.Jacoboni@univ-lemans.fr

Is this possible in Ruby

See [ruby-talk:19761]

Guy Decoux

p.s. : apparently the gateway news ==> ruby-talk is broken