From: Wejn Date: 2002-08-05T04:14:25+09:00 Subject: Range oddness ? Hi all, I'm trying to implement simple range check for my admin module ... and I found strange thing/behaviour: $ ruby -e 'p Range.new(1,4).type' Range $ ruby -e 'p (1..4).type' 1..4 Well, what's wrong with the latter? The 'real' problem for me is that: `` UID_RNG = (99..65000) raise ArgumentError, "UID #{uid} out of allowed range" \ unless UID_RNG.include?(uid) '' raises exception for 'uid = 997' Thanks in advance, W. PS: $ ruby -v ruby 1.6.7 (2002-06-30) [i686-linux] -- Wejn (svamberk.net's Linux section, fi.muni.cz student, linuxfan) >>> Bored? Want hours of entertainment? <<< >>> Just set the initdefault to 6! <<<