Object
Comparable
self == other
self === other
eql?(other)
Return true if the two objects are equal. Equivalent of
Python expression 'self == other'
.
self <=> other
Compare objects.
hash
Return the hash value of the object. Equivalent of
Python expression 'hash(self)'
.
inspect
Return the string representation of the object. Equivalent
of Python expression 'repr(self)'
.
method_missing(msg_id, ...)
Forward the message to the Python object. Retrieve the attribute specified by msg_id. If the attribute value is a method object, invoke the method and return the resulting value. If the attribute value is not method object, return the attribute value.
If the name specified by msg_id is
suffixed by '?'
, use the name without
'?'
, test the result as Python truth
value and return a boolean value.
to_s
Return the string representation of the object. Equivalent
of Python expression 'str(self)'
.