Thank you for the correction.

From: David Alan Black <dblack / candle.superlink.net>

> > But you can not simply replace { .. } with do .. end here (coz, the
> > call of sort is not allowed after do .. end).
> 
> Have you tried it?  :-)

I actually tried it.  But apparently not hard enough :-(

I thought I used v1.7(CVS) for my trial, but it was v1.4.x (due to
stupid path setting).  I could reproduce this behavior (inability of
connect chain after "end") in 1.4.x.

Sorry for the confusion.  

> 
>      ["Foo", "bAr", "zoT"].collect do |str|
>         [str.downcase, str] end .sort.collect do |pair|
>           pair[1]
>         end
> 
> # => ["bAr", "Foo", "zoT"]
> 
> 
> I know I've hit snags with doing this, though right now I can't seem
> to recreate them.  But there does not seem to be any general rule against
> chaining do/end blocks.

Maybe it was also v1.4.x.

Regards,
Komiya Kenichi.