At Thu, 5 Oct 2000 04:33:43 +0900,
hipster <hipster / xs4all.nl> wrote:
> 
> #!/usr/bin/ruby
> require "1.6"
> require "thread"
> ...

how about just

require 'rbconfig'
include Config

if CONFIG['MAJOR'] > 0
  if ('5'..'6').include? CONFIG['MINOR']
  # do some
  end
else
  raise 'where have you been hiding??
end

cons:
  - not so simple

pros:
  - full control
  - script level (well this depends on your point of view..)

Question:
  why are those MAJOR, MINOR, TEENY stored as String instead of
  Numeric?

# seems like TEENY has been used for a while [ruby-dev:4406], so i
# guess it's kinda too late to change, but, the two reasons described
# in 4406:
#
# - short name
# - hard to conflict
#
# don't make sense at least to me. if PATCHLEVEL is too long how about
# PATCH, or MICRO? For the other reason, MAJOR and MINOR are common
# words already, so i assume it doesn't matter to pick common word for
# patch level, anway. Or even, using common name might be easier to
# remember. well... it's just MHO.
--
           yashi