| 1 | package MooseX::Getopt::Strict; | ||
| 2 | # ABSTRACT: only make options for attributes with the Getopt metaclass | ||
| 3 | |||
| 4 | 1 | our $VERSION = '0.78'; | |
| 5 | |||
| 6 | 1 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 1 | ▶ | use namespace::autoclean; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 8 | |||
| 9 | 1 | with 'MooseX::Getopt'; | |
| 10 | |||
| 11 | 3 | ▶ | around '_compute_getopt_attrs' => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 12 | 3 | my $next = shift; | |
| 13 | 3 | my ( $class, @args ) = @_; | |
| 14 | grep { | ||
| 15 | 3 | $_->does("MooseX::Getopt::Meta::Attribute::Trait") | |
| 16 | } $class->$next(@args); | ||
| 17 | 1 | }; | |
| 18 | |||
| 19 | 1 | 1; | |
| 20 | |||
| 21 | __END__ | ||