On Fri, Jun 15, 2012 at 5:51 PM, Conrad Taylor <[email protected]> wrote: > 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. > So, how do you create a new instance of a class?
don't touch #new. Just implement #initialize and set your fields there. To everyone on the mailing list: we should encourage people to ask such kind of questions on stackoverflow.com. -- Damien Cassou http://damiencassou.seasidehosting.st "Lambdas are relegated to relative obscurity until Java makes them popular by not having them." James Iry
