> k=0
> while (k<10) do
>   puts val.attribute+=1
>   k+=1
> end


Certainly can be done in many ways, but what I want to do is spend just 
an attribute as a parameter to a method of the form: object.attribute, 
then you can modify this attribute in the method, as follows:

 def adder (attribute)
   attribute + = 1
 end

 That's what I do, but can not find the way.

-- 
Posted via http://www.ruby-forum.com/.