Ruby UnboundMethod Functions

EditRocket provides the following information on UnboundMethod 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.

bind(obj) - Bind umeth to obj. If Klass was the class from which umeth was obtained, obj.kind_of?(Klass) must be true.

clone() - "MISSING: documentation"

inspect - Show the name of the underlying method.

to_s - Show the name of the underlying method.