[Newbies] new and initialize

Joseph Alotta joseph.alotta at gmail.com
Tue May 10 18:06:59 UTC 2016


Greetings,

I have an instance method called ‘initialize’ that defines instance variables.  

I want it to run whenever a new instance is created.  How do I accomplish that?

I tried to add a class method ‘new’  that contained ^(super new) initialize.  But it warned me about adding the message saying it would have serious effects.

So where do I put it?

Sincerely,

Joe.





More information about the Beginners mailing list