> If I'm reading this right, given
> x.foreach ...
>   if ...
>     while ...
>       do_something
> something_else
> 
> ... would pop an end at the level of the 'while' only. You really
> need an end there and at each succeeding dedent level up to the level
> of the next statement ('something_else'). Not saying this is
> something that should be done, but if it is done, that's what you
> need to do.

Currently that would read
 x.foreach ...
   if ...
     while ...
       do_something
     end
    end
 end
 something_else

I believe.
Which makes me wonder
how does it differentiate between that and

> x.foreach ...
>   if ...
>     while ...
>       do_something
> .something_else

becoming

 x.foreach ...
   if ...
     while ...
       do_something
     end
    end
 end.something_else

is the "." special case?
-=r

-- 
Posted via http://www.ruby-forum.com/.