Hello,

On Fri, Nov 09, 2007 at 06:29:40PM +0900, Franck Yu wrote:
> Hi,
> I am creating a web site using Ruby on Rails and Paypal NVP API. I see
> in Paypal SDK something like:
> 
>   def nameOfaMethod
>     ...
>   rescue
>     ...
>   end
> 
> and I just want to make sure if it is correct. Usually rescue clause is
> in a begin ... end block. Can def replace begin as begin has an end and
> represents a block as well. Thanks!

The body of a method definition can be considered as a begin/end block. 
So the code is OK.

Regards,

-- 
Damien MERENNE   <dam / cosinux.org>
http://blog.cosinux.org/