On Thursday 27 November 2003 12:12 am, Ara.T.Howard wrote:
> On Thu, 27 Nov 2003, Paul Brannan wrote:
> > Date: Thu, 27 Nov 2003 06:40:52 +0900
> > From: Paul Brannan <pbrannan / atdesk.com>
> > Newsgroups: comp.lang.ruby
> > Subject: Re: raise unless RUBY_VERSION[%r/^\s*\d+\.\d+/o].to_f >= 1.8
> >
> > On Tue, Nov 25, 2003 at 08:32:14AM +0900, Ara.T.Howard wrote:
> > > any better methods of require a specific version/set of versions?
> >
> > require 'rbconfig'
> >
> > major = Config::CONFIG['MAJOR'].to_i
> > minor = Config::CONFIG['MINOR'].to_i
> > teeny = Config::CONFIG['TEENY'].to_i
> > if major < 1 or (major == 1 and minor < 8) then
> >   raise "wrong version"
> > end
> >
> > Of course, this can be wrapped into a nice version class.  I wrote one
> > of these a long time ago and never released it, but there are plenty of
> > others already out there.
> >
> > Paul
>
> nice!  you win paul!

not knocking paul's solution or anything, but you prefer this to using a 
tuple?