I'm trying to achieve the effect of having a range of integers as a hash
key, possible?

In effect I've tried:

range = 12345...12360

hash = { range => "success!" }

hash[12349]

=> nil

I've also tried:

array = []
range.each{|x| array << x}

hash = { array => "success!" }

hash[12349]
=> nil

Anyone have any advice to point me in a direction?

Thanks!

- Mac
-- 
Posted via http://www.ruby-forum.com/.