From: Lloyd Zusman Date: 2005-11-14T02:32:02+09:00 Subject: Re: Converting between Time and DateTime "David A. Black" writes: > Hi -- > > On Mon, 14 Nov 2005, Lloyd Zusman wrote: > >> In your methods below, I see "rescue" without a formal "begin/end" >> block. I've never seen that construct before. I'm guessing that single >> line statements don't need begin/end, correct? > > Method defs provide an implicit 'begin', so you can put a rescue > clause in them without adding a 'begin'. I never realized this. I guess I overlooked that part of the docs. This will allow me to remove a few begin/end constructs from some of the short methods I've written. Thanks. -- Lloyd Zusman ljz@asfast.com God bless you.