On Jun 15, 2012, at 5:48 PM, Conrad Taylor wrote:
> On Fri, Jun 15, 2012 at 8:05 AM, Damien Cassou <[email protected]>
> wrote:
> On Fri, Jun 15, 2012 at 4:09 PM, Conrad Taylor <[email protected]> wrote:
> > Hi, is there an automated setting which creates default new and initialize
> > methods for a new class?
>
> why do you need to implement #new so often? It's kind of rare in the
> code I've read.
>
>
> Hi, I would like to initialize the objects I create with some reasonable
> defaults and I don't want to have setters and getters for every instance
> variable.
>
#new calls #initialize by default.
So the only thing you need to implement is the #initialize method on your class.
Marcus
--
Marcus Denker -- http://marcusdenker.de