1MooseX::NonMoose::Meta:U:sReorleC:o:nCtornisbtuMrtoueocdsteoPXre:(r:3lN)oDnoMcouomseen:t:aMteitoan::Role::Constructor(3)
2
3
4
6 MooseX::NonMoose::Meta::Role::Constructor - constructor method trait
7 for MooseX::NonMoose
8
10 version 0.26
11
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
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
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.36.0 2M0o2o2s-e0X7:-:2N2onMoose::Meta::Role::Constructor(3)