ThoML
2/3/2009 6:22:00 AM
> =A0 =A0 if @x.nil?
> =A0 =A0 =A0 @x =3D var
This could be rewritten as
@x ||=3D var
> =A0 =A0 elsif @y.nil?
What if @x and @y are nil? You might want to use
@y ||=3D var
@z ||=3D var
instead -- depending on what you want of course.