Method: RubyPython::PyObject#cmp
- Defined in:
- lib/rubypython/pyobject.rb
#cmp(other) ⇒ Object
Performs a compare on two Python objects. Returns a value similar to that of the spaceship operator (<=>).
143 144 145 |
# File 'lib/rubypython/pyobject.rb', line 143 def cmp(other) RubyPython::Python.PyObject_Compare @pointer, other.pointer end |