John Mettraux wrote:
> On 9/7/07, Lloyd Linklater <lloyd / 2live4.com> 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.

That is just too cool for words.  Thanks for getting back to me!
-- 
Posted via http://www.ruby-forum.com/.