From: "Jan E." Date: 2012-06-29T17:37:03+09:00 Subject: Re: Interactions between 'new' and 'initialize' ? Cees Zeelenberg wrote in post #1066604: > I agree that redefining 'new' for Child should work, but I don't think > Child should inherit 'new' from Parent. The arguments to 'new' should be > determined by its own 'initialize' method which takes two arguments. Well, "new" is a normal class method, so it will behave just like any other class methods. > In the mean time I think I have solved my problem by patching the > 'initialize' instance method rather than 'new'. That at least does not > seem to have any side effects. Yes, and it makes much more sense. Redefining "new" seems like a very bad idea to me, because it will alter the core functionalities of Ruby. Even if it works, it will be very surprising for other people. -- Posted via http://www.ruby-forum.com/.