File: StrictMoose.pm

package info (click to toggle)
libmason-perl 2.24-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 748 kB
  • sloc: perl: 4,882; makefile: 7
file content (20 lines) | stat: -rw-r--r-- 485 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package Mason::Test::Overrides::Component::StrictMoose;
$Mason::Test::Overrides::Component::StrictMoose::VERSION = '2.24';
use Moose::Exporter;
use MooseX::StrictConstructor ();
use strict;
use warnings;
use base qw(Mason::Component::Moose);
use strict;
use warnings;

Moose::Exporter->setup_import_methods();

sub init_meta {
    my $class  = shift;
    my %params = @_;
    $class->SUPER::init_meta(@_);
    MooseX::StrictConstructor->import( { into => $params{for_class} } );
}

1;