Ruby Method Functions

EditRocket provides the following information on Method functions in the Ruby source code builder.

arity - Returns an indication of the number of arguments accepted by a method. Returns a nonnegative integer for methods that take a fixed number of arguments. For Ruby methods that take a variable number of arguments, returns -n-1, where n is the number of required arguments. For methods written in C, returns -1 if the call takes a variable number of arguments.

call(args, ...) - Invokes the meth with the specified arguments, returning the method's return value.

clone() - "MISSING: documentation"

inspect - Show the name of the underlying method.

new -

to_proc - Returns a Proc object corresponding to this method.

to_s - Show the name of the underlying method.

unbind - Dissociates meth from it's current receiver. The resulting UnboundMethod can subsequently be bound to a new object of the same class (see UnboundMethod).