class PyCall::PyObjectWrapper::SwappedOperationAdapter
Attributes
obj[R]
Public Class Methods
new(obj)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 91 def initialize(obj) @obj = obj end
Public Instance Methods
%(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 113 def %(other) other.__rmod__(self.obj) end
&(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 129 def &(other) other.__rand__(self.obj) end
*(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 105 def *(other) other.__rmul__(self.obj) end
**(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 117 def **(other) other.__rpow__(self.obj) end
+(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 97 def +(other) other.__radd__(self.obj) end
-(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 101 def -(other) other.__rsub__(self.obj) end
/(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 109 def /(other) other.__rtruediv__(self.obj) end
<<(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 121 def <<(other) other.__rlshift__(self.obj) end
>>(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 125 def >>(other) other.__rrshift__(self.obj) end
^(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 133 def ^(other) other.__rxor__(self.obj) end
|(other)
click to toggle source
# File lib/pycall/pyobject_wrapper.rb, line 137 def |(other) other.__ror__(self.obj) end