| 1 | #!/usr/bin/perl | ||
| 2 | |||
| 3 | package Mail::Summary::Tools::ArchiveLink::Hardcoded; | ||
| 4 | 6 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 6 | ▶ | use Moose::Util::TypeConstraints; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 6 | ▶ | use URI; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | subtype __PACKAGE__ . "::URI" | ||
| 10 | => as "Object" | ||
| 11 | 0 | ▶ | => where { $_->isa("URI") }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 12 | |||
| 13 | coerce __PACKAGE__ . "::URI" | ||
| 14 | => from "Str" | ||
| 15 | 0 | ▶ | => via { URI->new($_[0]) }; |
|
Subroutine
__ANON__: not called CC=1 SCAR=1.2
| |||
| 16 | |||
| 17 | 6 | has thread_uri => ( | |
| 18 | isa => __PACKAGE__ . "::URI", | ||
| 19 | is => "rw", | ||
| 20 | coerce => 1, | ||
| 21 | ); | ||
| 22 | |||
| 23 | 6 | has message_uri => ( | |
| 24 | isa => __PACKAGE__ . "::URI", | ||
| 25 | is => "rw", | ||
| 26 | coerce => 1, | ||
| 27 | ); | ||
| 28 | |||
| 29 | 6 | with "Mail::Summary::Tools::ArchiveLink"; | |
| 30 | |||
| 31 | 6 | __PACKAGE__; | |
| 32 | |||
| 33 | __END__ | ||