src code

instance method Function#methodize

Function#methodize() → Function

Wraps the function inside another function that, at call time, pushes this to the original function as the first argument.

Used to define both a generic method and an instance method.