From: Sebastian Hungerecker Date: 2010-01-17T23:38:42+09:00 Subject: Re: when to use * arguments? On 08.01.2010 13:00, Bertram Scharpf wrote: > It's something like > > class Object > class < def new *args > instance = allocate_space > instance.initialize *args # <<< > instance > end > end > end To nitpick (I know it isn't relevant to the discussion at hand), it's actually more something like: class Class # instance method of Class, not singleton method of Object def new *args, &blk # Can take (and will pass) a block, too # Calls Class#allocate (or a particular class's override of that method) instance = allocate instance.send(:initialize, *args, &blk) # initialize is a private method instance end end Except, of course, it's written in C.