Hi --

On Mon, 15 Jan 2007, gwtmp01 / mac.com wrote:

>
> On Jan 14, 2007, at 9:23 AM, dblack / wobblini.net wrote:
>> I'll just add, in case it helps with future understanding of something
>> similar, that I don't think Ruby ever initializes an instance variable
>> for you, without your specifically doing it (or implicitly, in the
>> case of attr_*-generated methods).
>
> Call me pedantic, but I think it is important to point out that Dave's
> comment excludes Ruby's default initialization to nil for instance variables.

I won't call you pedantic, if you don't call me Dave :-)

I agree; more accurate would be say: Instance variables default to
nil, and Ruby never sets an instance variable for you.


David

-- 
Q. What is THE Ruby book for Rails developers?
A. RUBY FOR RAILS by David A. Black (http://www.manning.com/black)
    (See what readers are saying!  http://www.rubypal.com/r4rrevs.pdf)
Q. Where can I get Ruby/Rails on-site training, consulting, coaching?
A. Ruby Power and Light, LLC (http://www.rubypal.com)