| 1 | package WebService::OpenSky::Moose; | ||
| 2 | |||
| 3 | # ABSTRACT: MooseX::Extended::Custom for WebService::OpenSky | ||
| 4 | |||
| 5 | 9 | ▶ | use MooseX::Extended::Custom; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 6 | 9 | ▶ | use PerlX::Maybe 'provided'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 9 | our $VERSION = '0.5'; | |
| 8 | |||
| 9 | # If $^P is true, we're running under the debugger. | ||
| 10 | # | ||
| 11 | # When running under the debugger, we disable __PACKAGE__->meta->make_immutable | ||
| 12 | # because the way the debugger works with B::Hooks::AtRuntime will cause | ||
| 13 | # the class to be made immutable before the we apply everything we need. This | ||
| 14 | # causes the code to die. | ||
| 15 | 73 | ▶ | sub import ( $class, %args ) { |
|
Subroutine
import: called CC=1 SCAR=0.0
| |||
| 16 | 73 | MooseX::Extended::Custom->create( | |
| 17 | includes => 'method', | ||
| 18 | provided $^P, excludes => 'immutable', | ||
| 19 | %args # you need this to allow customization of your customization | ||
| 20 | ); | ||
| 21 | } | ||
| 22 | |||
| 23 | __END__ | ||