I know that Class defines ===
to test whether
an object is an instance of that class.
Now the question is why this evaluate to true
only if Class
is the lefthand operand.
Example:
'a' === String #false
and
String === 'a' #true
or
def Foo
end
f = Foo.new
f === Foo #false
Foo === f #true