From: "David A. Black" Date: 2007-08-21T01:04:39+09:00 Subject: Re: Current rubygems require idiom Hi -- On Tue, 21 Aug 2007, Daniel Berger wrote: > > > On Aug 20, 8:42 am, Daniel DeLorme wrote: >> Daniel Berger wrote: >>> In environments where I have multiple Ruby installations, where some use >>> rubygems and some don't, I do this: >> >>> require 'rubygems' rescue nil >>> require 'funit' >> >> Er, that can't possibly work since LoadError isn't a subclass of >> StandardError > > Yeah, yeah, it should have been "rescue LoadError nil". I don't think the error specification thing works with the one-line rescue, though. David -- * Books: RAILS ROUTING (new! http://www.awprofessional.com/title/0321509242) RUBY FOR RAILS (http://www.manning.com/black) * Ruby/Rails training & consulting: Ruby Power and Light, LLC (http://www.rubypal.com)