From: Dirk Meijer Date: 2006-04-16T22:41:15+09:00 Subject: Re: re-defining an initialize method ------=_Part_725_16020416.1145194872383 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline 2006/4/16, Dirk Meijer : > hi all, > while editing a class, i caught myself doing this: > > class Foobar > alias initialize old_initialize > def initialize > old_initialize > # code > end > end > > and it doesn't look nice to me, is this really horrible in any way? or is > it > something i should use, whenever needed? > greetings, Dirk. i'm sorry, of course it should have been this: alias old_initialize initialize greetings, Dirk. ------=_Part_725_16020416.1145194872383--