← index

Method

inherits Object

A method as an object: the reflective handle behind a selector in a class's method table. Method objects are created by the VM when classes define or extend methods; there is no public constructor.

Instance methods

==:

Identity: whether both sides are the same method object.

native

block

The Block holding this method's body, or nil for a method implemented natively in the VM.

native

callOn:

Invoke the method with the argument as its receiver (self). Raises for a native method, whose body is not a Block.

native

extension?

Whether this method was added by a class extension (Name <-- { ... } or a method override) rather than the class's original definition.

native

name

The selector as a Symbol; a synonym for selector.

native

selector

The selector this method answers to, as a Symbol (#at:put: style).

native