Module: PyCall::PyModuleWrapper

Includes:
PyObjectWrapper
Defined in:
lib/pycall/pymodule_wrapper.rb

Constant Summary

Constants included from PyObjectWrapper

PyCall::PyObjectWrapper::OPERATOR_METHOD_NAMES

Instance Attribute Summary

Attributes included from PyObjectWrapper

#__pyptr__

Instance Method Summary collapse

Methods included from PyObjectWrapper

#[]=, #call, #coerce, #dup, extend_object, #inspect, #kind_of?, #method_missing, #respond_to_missing?, #to_f, #to_i, #to_s

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class PyCall::PyObjectWrapper

Instance Method Details

#[](*args) ⇒ Object



7
8
9
10
11
12
13
14
# File 'lib/pycall/pymodule_wrapper.rb', line 7

def [](*args)
  case args[0]
  when String, Symbol
    PyCall.getattr(self, args[0])
  else
    super
  end
end