"Paul E.C. Melis" <melis / cs.utwente.nl> writes:

> def good_method
>   for f in [ 1, 2, 3 ]
>   pass rescue true

this rescue clause is a statement modifer, handling exceptions in the
'pass' statement.

>   end
> end
> 
> def bad_method
>   for f in [ 1, 2, 3 ]
>   pass
>   rescue true

this one isn't. It's a normal rescue, so it needs a begin/end, or it
needs to be at the outer level in a method.


Cheers


Dave