1MooseX::NonMoose::Meta:U:sReorleC:o:nCtornisbtuMrtoueocdsteoPXre:(r:3lN)oDnoMcouomseen:t:aMteitoan::Role::Constructor(3)
2
3
4

NAME

6       MooseX::NonMoose::Meta::Role::Constructor - constructor method trait
7       for MooseX::NonMoose
8

VERSION

10       version 0.26
11

SYNOPSIS

13         package My::Moose;
14         use Moose ();
15         use Moose::Exporter;
16
17         Moose::Exporter->setup_import_methods;
18         sub init_meta {
19             shift;
20             my %options = @_;
21             Moose->init_meta(%options);
22             Moose::Util::MetaRole::apply_metaclass_roles(
23                 for_class               => $options{for_class},
24                 metaclass_roles         => ['MooseX::NonMoose::Meta::Role::Class'],
25                 constructor_class_roles =>
26                     ['MooseX::NonMoose::Meta::Role::Constructor'],
27             );
28             return Moose::Util::find_meta($options{for_class});
29         }
30

DESCRIPTION

32       This trait implements inlining of the constructor for classes using the
33       MooseX::NonMoose::Meta::Role::Class metaclass trait; it has no effect
34       unless that trait is also used. See those docs and the docs for
35       MooseX::NonMoose for more information.
36

AUTHOR

38       Jesse Luehrs <doy@tozt.net>
39
41       This software is copyright (c) 2014 by Jesse Luehrs.
42
43       This is free software; you can redistribute it and/or modify it under
44       the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.28.1                      2M0o1o4s-e0X2:-:2N5onMoose::Meta::Role::Constructor(3)
Impressum