(self, method)
The constructor takes a :class:`~rubicon.objc.runtime.Method` object,
        whose information is used to create an :class:`ObjCMethod`.
        This can be used to call or introspect a :class:`~rubicon.objc.runtime.Method` pointer
        received from the Objective-C runtime.
The constructor takes a :class:`~rubicon.objc.runtime.Method` object,
        whose information is used to create an :class:`ObjCMethod`.
        This can be used to call or introspect a :class:`~rubicon.objc.runtime.Method` pointer
        received from the Objective-C runtime.
The constructor takes a : class : ~rubicon . objc . runtime . Method object whose information is used to create an : class : ObjCMethod . This can be used to call or introspect a : class : ~rubicon . objc . runtime . Method pointer received from the Objective - C runtime .
def __init__(self, method):
        """The constructor takes a :class:`~rubicon.objc.runtime.Method` object,
        whose information is used to create an :class:`ObjCMethod`.
        This can be used to call or introspect a :class:`~rubicon.objc.runtime.Method` pointer
        received from the Objective-C runtime.
        """

        self.selector = libobjc.method_getName(method)
        self.name = self.selector.name
        self.encoding = libobjc.method_getTypeEncoding(method)
        self.restype, *self.imp_argtypes = ctypes_for_method_encoding(self.encoding)
        assert self.imp_argtypes[:2] == [objc_id, SEL]
        self.method_argtypes = self.imp_argtypes[2:]
def __init__ ( self , method ) : self . selector = libobjc . method_getName ( method ) self . name = self . selector . name self . encoding = libobjc . method_getTypeEncoding ( method ) self . restype , * self . imp_argtypes = ctypes_for_method_encoding ( self . encoding ) assert self . imp_argtypes [ : 2 ] == [ objc_id , SEL ] self . method_argtypes = self . imp_argtypes [ 2 : ]