Class: ObjC::Method

ObjC::Method wraps Objective-C methods for manipulation from Ruby.


Public Instance methods

<=> (p1)

Compare the method with another method p1.

== (p1)

Test a method for equality with another method p1.

argument_count ()

Get the number of arguments of the method from the Objective-C runtime.

argument_type (p1)

Get the type code of a method argument from the Objective-C runtime given its index p1.

eql? (p1)

Test a method for equality with another method p1.

hash ()

Get a hash value for a method.

name ()

Get the name of the method from the Objective-C runtime.

return_type ()

Get the type code of the method return value from the Objective-C runtime.

signature ()

Get the signature of the method from the Objective-C runtime. The signature is the concatenated codes for the method return type and the method argument types.

to_s ()

Get the name of the method from the Objective-C runtime.

type_encoding ()

Get the type encoding of the method from the Objective-C runtime. The type encoding is like the signature but also includes byte offsets of each argument (these offsets are not used by RubyObjC).