| 1 | package Reaction::Meta::InterfaceModel::Action::Class; | ||
| 2 | |||
| 3 | 5 | ▶ | use Reaction::Class; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 5 | ▶ | use aliased 'Reaction::Meta::InterfaceModel::Action::ParameterAttribute'; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 5 | ▶ | use namespace::clean -except => [ qw(meta) ]; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 7 | 5 | extends 'Reaction::Meta::Class'; | |
| 8 | |||
| 9 | 65 | ▶ | around initialize => sub { |
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||
| 10 | 65 | my $super = shift; | |
| 11 | 65 | my $class = shift; | |
| 12 | 65 | my $pkg = shift; | |
| 13 | 65 | $super->($class, $pkg, attribute_metaclass => ParameterAttribute, @_); | |
| 14 | 5 | }; | |
| 15 | 32 | ▶ | sub parameter_attributes { |
|
Subroutine
parameter_attributes: called CC=1 SCAR=0.0
Pod
documented
| |||
| 16 | 32 | my $self = shift; | |
| 17 | 32 | return grep { $_->isa(ParameterAttribute) } | |
| 18 | $self->get_all_attributes; | ||
| 19 | }; | ||
| 20 | |||
| 21 | 5 | __PACKAGE__->meta->make_immutable(inline_constructor => 0); | |
| 22 | |||
| 23 | |||
| 24 | 5 | 1; | |
| 25 | |||
| 26 | =head1 NAME | ||
| 27 | |||
| 28 | Reaction::Meta::InterfaceModel::Action::Class | ||
| 29 | |||
| 30 | =head1 DESCRIPTION | ||
| 31 | |||
| 32 | =head2 parameter_attributes | ||
| 33 | |||
| 34 | =head1 AUTHORS | ||
| 35 | |||
| 36 | See L<Reaction::Class> for authors. | ||
| 37 | |||
| 38 | =head1 LICENSE | ||
| 39 | |||
| 40 | See L<Reaction::Class> for the license. | ||
| 41 | |||
| 42 | =cut | ||