From: Michael Neumann Date: 2004-07-21T20:01:07+09:00 Subject: Re: Little query Peter Hickman wrote: > Given that x is an Array how come I can do > > if x.last + 1 == value > > but I cant do > > x.last = value you could do, if there was a Array#last= method. Try: class Array def last=(v) self[-1] = v end end and now: x.last = value works :-) Regards, Michael