From: Stefan Salewski Date: 2011-04-12T22:12:27+09:00 Subject: Re: puts box.dup.enlarge(4, 5) -- unexpected result On Tue, 2011-04-12 at 21:55 +0900, Gunther Diemant wrote: > A method returns the last evaluated expression. In your case thats @y2 += 5 > (which has the result 8). > You could do something like this: > def enlarge(x,y) > #your code > > self > end > > so the method returns the box itself and not the result of calculationg new > coordinates. > Thanks!