File: Composite.pm

package info (click to toggle)
libmoosex-undeftolerant-perl 0.21-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 348 kB
  • sloc: perl: 493; sh: 6; makefile: 5
file content (28 lines) | stat: -rw-r--r-- 552 bytes parent folder | download | duplicates (2)
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
package MooseX::UndefTolerant::Composite;

our $VERSION = '0.21';

use Moose::Role;

around apply_params => sub {
    my $orig = shift;
    my $self = shift;

    $self->$orig(@_);

    $self = Moose::Util::MetaRole::apply_metaroles(
        for            => $self,
        role_metaroles => {
            application_to_class =>
                ['MooseX::UndefTolerant::ApplicationToClass'],
            application_to_role =>
                ['MooseX::UndefTolerant::ApplicationToRole'],
        },
    );

    return $self;
};

no Moose::Role;

1;