class method Cobra.Class.method
Cobra.Class.method(callable, self) → function
-
callable
(Function
) – A function to methodize. -
self
(Object
) – The scope you wantthis
to be defined as when this method is called.
Makes a method out of passed function, and returns the new function