Class: PyBind::PyType
- Includes:
- PyCallable, PyObjectWrapper
- Defined in:
- lib/pybind/types/basic.rb,
lib/pybind/types/function.rb
Constant Summary
Constants included from Operator
Operator::BINARY_OPERATION_OPFUNCS, Operator::UNARY_OPERATION_OPFUNCS
Constants included from RichComparer
RichComparer::Py_EQ, RichComparer::Py_GE, RichComparer::Py_GT, RichComparer::Py_LE, RichComparer::Py_LT, RichComparer::Py_NE, RichComparer::RICH_COMPARISON_OPCODES
Instance Method Summary collapse
Methods included from PyObjectWrapper
#autocall_method_missing, #call, included, #initialize, #inspect, #methods, #python_type, #to_python_struct
Methods included from Operator
#!, #**, #<=>, #===, #__binary_operate__, #__unary_operate__
Methods included from RichComparer
Methods included from AttrAccessor
#[], #[]=, #get_attribute, #has_attribute?, #remove_attribute, #set_attribute
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class PyBind::PyObjectWrapper
Instance Method Details
#to_s ⇒ Object
6 7 8 9 |
# File 'lib/pybind/types/basic.rb', line 6 def to_s return super unless has_attribute?('__name__') get_attribute('__name__') end |