From: Michael campbell Date: 2003-11-25T08:41:34+09:00 Subject: Re: raise unless RUBY_VERSION[%r/^\s*\d+\.\d+/o].to_f >= 1.8 Ara.T.Howard wrote: > > any better methods of require a specific version/set of versions? > > -a This might be a good thing to encapsulate somehow; perl has a construct like so: require 5; which requires that the version of perl running the script be >= 5. (IIRC, you can "require" arbitrary levels, like ``require 5.0.1;'', but I might be mistaken on that.) Given ruby is changing in fairly large chunks, this might be useful.