File: TestHook.pm

package info (click to toggle)
libspoon-perl 0.24-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 296 kB
  • sloc: perl: 2,640; makefile: 2
file content (26 lines) | stat: -rw-r--r-- 251 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package TestHook;
use Spoon::Base -Base;

sub number {
    42;
}

sub other {
    45;
}

package TestHookA;
use base 'Spoon::Base';

sub one {
    47;
}

package Tweak;
use base 'TestHookA';

sub two {
    my $hook = pop;
    $hook->cancel;
    48;
}