blob: c09bdb62ff5a7abb624f62d82dd55fbf8a71ed96 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
package Reaction::Meta::InterfaceModel::Action::Class;
use Reaction::Class;
use aliased 'Reaction::Meta::InterfaceModel::Action::ParameterAttribute';
class Class is 'Reaction::Meta::Class', which {
implements new => as { shift->SUPER::new(@_) };
around initialize => sub {
my $super = shift;
my $class = shift;
my $pkg = shift;
$super->($class, $pkg, attribute_metaclass => ParameterAttribute, @_);
};
implements parameter_attributes => as {
my $self = shift;
return grep { $_->isa(ParameterAttribute) }
$self->compute_all_applicable_attributes;
};
};
1;
=head1 NAME
Reaction::Meta::InterfaceModel::Action::Class
=head1 DESCRIPTION
=head2 parameter_attributes
=head1 AUTHORS
See L<Reaction::Class> for authors.
=head1 LICENSE
See L<Reaction::Class> for the license.
=cut
|