| 1 | package Mason::Plugin::RouterSimple::Component::Import; | ||
| 2 | 1 | ▶ | BEGIN { |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 1 | $Mason::Plugin::RouterSimple::Component::Import::VERSION = '0.07'; | |
| 4 | } | ||
| 5 | 1 | ▶ | use Mason::PluginRole; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | |||
| 7 | 3 | ▶ | after 'import_into' => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 8 | 3 | my ( $class, $for_class ) = @_; | |
| 9 | 1 | ▶ | no strict 'refs'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 10 | 3 | ▶ | *{ $for_class . "::route" } = sub ($;$) { $for_class->router_add(@_) }; |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 11 | 1 | }; | |
| 12 | |||
| 13 | 1 | 1; | |