From: ahoward Date: 2003-01-30T04:48:04+09:00 Subject: Re: Local variables & blocks On Wed, 29 Jan 2003, Martin DeMello wrote: > Why, though? I can't think of a case where I'd need to know a variable was > undefined, result = if callback callback (*args) else default_callback (*args) end or more generally object and object.method the ol 'call a method on object if object is not nil' or even size = array && array.size || -1 which i do all the time. -a -- ==================================== | Ara Howard | NOAA Forecast Systems Laboratory | Information and Technology Services | Data Systems Group | R/FST 325 Broadway | Boulder, CO 80305-3328 | Email: ahoward@fsl.noaa.gov | Phone: 303-497-7238 | Fax: 303-497-7259 ====================================