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.


Best regards,

-- 
John Mettraux   -///-   http://jmettraux.openwfe.org