"Kent Dahl" <kentda / stud.ntnu.no> wrote in
....
> >          [@a, @b].collect! { |iv| iv+=1 }
>
> This doesn't appear to change the values of @a and @b, which it seems
> like the OP wanted.

Okay what about

   def inc_iv
         @a,@b = [@a,@b].collect! { |iv| iv+=1 }
    end


/Christoph