From: Dot Baiki Date: 2008-09-15T23:45:55+09:00 Subject: Re: Need someone who can help Lloyd Linklater wrote: > I am glad that it helped, though it seems that you have more than you > strictly seem to need. e.g. > > class AreaOfCircle > > PI = 3.14159265 > > def calc_area(radius) > PI * radius**2 > end > end > > is plenty. Note: no parameter needed for the AreaOfCircle.new I totally agree. I just thought it's better to allocate this memory in order to write "clean" code. I just started with Ruby a few days ago, hence I'm a total beginner (also with the English language). If I don't do this "initialize" thing: no drawbacks? Baiki -- Posted via http://www.ruby-forum.com/.