removeMethod
removeMethod(
s_genFunction
g_className
[ g_role ]
)
=> t / nil
Description
Removes a given method from a generic function.
For compatibility with previous releases, this function is aliased to lRemoveMethod.
Arguments
|
s_genFunction
|
Name of the generic function from which the method needs to be removed.
|
|
g_className
|
Name of the class or a list of classes to which the generic function belongs.
|
|
g_role
|
Specifies the method qualifier. It can have one of the following values: '@before, '@after, '@around, or nil. If this value is not provided or is specified as nil, then the primary method is removed.
|
Value Returned
|
t
|
If the method is successfully removed.
|
|
nil
|
If the method is not removed.
|
Examples
To remove the object myClass from the function myFunction:
removeMethod('myFunction 'myClass)
removeMethod('myFunB '(classX classY) '@after)
Related Topics
Debug Functions
Return to top