But in this case we are calling "Object#===" and not "Kernel#===" or
"Module#===", aren't we?
In the "Programming Ruby" book there is no documentation on
"Kernel#===". Even on "Module#===", the format is
mod === anObject # calls Module#===, I think
and not
anObject === mod # calls Object#===, I think
Regards,
Bill
==========================================================================
ts <decoux / moulon.inra.fr> wrote:
> Well, it's not wrong : the === operator is overriden at C level
> Basically Kernel#=== is an alias for Kernel#==
> Some classes redefine #===, for example Module, Range, Regexp
> Guy Decoux