From: "Dmitry V. Sabanin" Date: 2004-07-30T16:28:59+09:00 Subject: Re: defined? in ruby-1.9 On Friday 30 July 2004 15:06, Robert Klemme wrote: > "Dmitry V. Sabanin" schrieb im Newsbeitrag > news:200407301222.10852.sdmitry@lrn.ru... > > > Hi, > > > > Lately I was converting some of my projects to ruby 1.9, and I found > > that this code is no longer working: > > raise if defined?(Test::Unit) > > I guess you intended to write > > raise unless defined? Test::Unit Well, no.. this code is used in exception-catching framework, so the point is to re-raise exception if code is used for tests or to log it if it's in standalone use. Sorry for providing non-obvious example :) -- sdmitry -=- Dmitry V. Sabanin MuraveyLabs. Spam Here -> postmaster@sco.com