From: David Alan Black Date: 2002-07-03T18:53:55+09:00 Subject: Re: (0..3) == (0...4) returning false? On Wed, 3 Jul 2002, David Alan Black wrote: > My instinct would be to expect: > > aRange === n iff aRange.to_a.include?(n) Hmmm... maybe not. I forgot about Range#include?, which already takes care of this, so to speak. Let me put it another way, then: I think there should be a method that does what Range#=== currently does, though (for whatever reason) my expectation when I actually see Range#=== is that it will behave like Range#include? (whereas in fact it behaves like the non-existent method Range#encompasses?). David -- David Alan Black home: dblack@candle.superlink.net work: blackdav@shu.edu Web: http://pirate.shu.edu/~blackdav