From: Aldric Giacomoni Date: 2010-05-12T06:07:05+09:00 Subject: Re: Super simple newbie Q about methods Henry Oss wrote: > > Thanks for that, but I was looking for a way of passing by address. In > fact I thought that, because everything was an object in Ruby everything > was always passed by address. I would like to understand when it is not > the case. Well.... def i, j i[0] = i[0] + j end # You will notice that the previous method requires i to be an Array. i = [1] puts i add i, 2 puts i # Happy? :) -- Posted via http://www.ruby-forum.com/.