From: Brian Candler Date: 2009-02-26T03:05:36+09:00 Subject: Re: Using "rescue" inline I単aki Baz Castillo wrote: > Hi, is it correct the following "rescue" usage? > > myvar = 1 # Fixnum > othervar = myvar.downcase rescue myvar > => 1 > > It seems to work, but is it really correct? Thanks. Yes. What you have written is shorthand form of rescue, equivalent to: myvar = 1 othervar = begin myvar.downcase rescue StandardError myvar end -- Posted via http://www.ruby-forum.com/.