Source
VS::RuleEngine::Hook::Perl - Use a code reference as an hook
- new ( CODE )
-
Creates a new instance.
The argument CODE must be a reference to a subroutine - either anoynmous or named.
- invoke
-
Forwards the call to the wrapped subroutine.
syntax highlighting: