Closes #104. This is a modification of #103, but with code that is a bit easier for me to understand.
Now new() doesn't just take ...; it gets its arguments from the initialize() method.
One exception is when a subclass doesn't define its own initialize method. In that case, new() just takes ... and passes them along to the superclass's initialize(). This is because the inheritance is resolved when new() is called, not when the class is defined, so the content of the superclass's initialize() method cannot be known before new() is called.
Closes #104. This is a modification of #103, but with code that is a bit easier for me to understand.
Now
new()
doesn't just take...
; it gets its arguments from theinitialize()
method.One exception is when a subclass doesn't define its own
initialize
method. In that case,new()
just takes...
and passes them along to the superclass'sinitialize()
. This is because the inheritance is resolved whennew()
is called, not when the class is defined, so the content of the superclass'sinitialize()
method cannot be known beforenew()
is called.