Ross Bamford wrote:
> On Thu, 2006-03-23 at 23:13 +0900, Une bue wrote:

>> the equality "===" returns false ???

Adding to Ross' excellent explanation: it helps to *not* view "===" as 
an equality operator.  Rather it's a general matching operator, whatever 
matching means in a certain context.  For RX it will do an RX match, for 
class objects it will do the kind_of? check, for a range it will check 
include? etc.  Btw, has anyone an idea why this does not apply to 
Enumerable?

 >> [1,2,3].include? 2
=> true
 >> [1,2,3] === 2
=> false

Kind regards

	robert