Thanks all of you for clearing that up. In ruby I'm used not using
parenthesis when calling methods without parameters, but I should be
able to remember this exception :)

On 02/04/07, Bertram Scharpf <lists / bertram-scharpf.de> wrote:
> Hi,
>
> Am Dienstag, 03. Apr 2007, 05:59:31 +0900 schrieb Ryan Leavengood:
> > On 4/2/07, Dan Stevens (IAmAI) <dan.stevens.iamai / gmail.com> wrote:
> > >Could someone explain why the following code raises ArgumentError. Thanks.
> > >
> > >class SuperClass
> > >
> > >        def initialize #Make sure you spell 'initialize' correctly!
> > >...
> > >
> > >class SubClass < SuperClass
> > >
> > >        def initialize(data1, data2)
> > >                super
> >
> > This should be super(). Without the parenthesis it defaults to passing
> > the arguments given to the current method to the super class's
> > implementation.
>
> Ah, parentheses do the trick. I always helped me calling
>
>     super *[]
>
> what is not actually readable or beautiful.
>
> Bertram
>
>
> --
> Bertram Scharpf
> Stuttgart, Deutschland/Germany
> http://www.bertram-scharpf.de
>
>