Yoann Guillot
10/19/2006 11:18:00 AM
>
> 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