From: John Mettraux Date: 2007-09-07T11:10:07+09:00 Subject: Re: help me condence my code? On 9/7/07, Lloyd Linklater wrote: > Jeremy Woertink wrote: > > end.delete_at(-1) > > OMG! You can call methods in an end??? I have lived far to long in the > scalar world! When would you do such a thing? irb(main):004:0> [1, 2].collect do |i| i+3; end.join " : " => "4 : 5" The method call is not on the "end" but on the result of the method using the block that the "end", well, 'closes'. Very functional. Best regards, -- John Mettraux -///- http://jmettraux.openwfe.org