FreeBSD.software
Home/devel/p5-Class-Hook

p5-Class-Hook

0.06

Add hooks on methods from other classes

Class::Hook enables you to trace methods calls from your code to other classes. Instead of putting 'use Foo;' in your code, simply type 'use Class::Hook;'. The class Foo is unknown in your code. It will be magically caught by Class::Hook which will call Foo itself. You can see Class::Hook as a kind of relay. You can setup a subroutine to be called before any call to Foo->amethod and a subroutine to be called after the call. Your subs will receive all the information that Foo->amethod will receive, so you can trace everything between your code and Foo.

Origin: devel/p5-Class-Hook
Category: devel
Size: 47.6KiB
License: ART10, GPLv1+
Maintainer: perl@FreeBSD.org
Dependencies: 1 packages
Required by: 0 packages
$pkg install p5-Class-Hook

Dependencies (1)

More in devel