From: Yoann Guillot Date: 2006-10-19T20:17:53+09:00 Subject: Re: instance variable not initialized warning > > Does it make sense to spit out this warning even if you are doing > something safe such as calling Object#nil? > > What do you think? > The interpreter does not flag methods as 'safe' or 'unsafe'. If you want to get rid of the warning, you can use if defined? @var or @var ||= 0 @var += 1 Yoann