1MooseX::NonMoose::Meta:U:sReorleC:o:nCtlraisbsu(t3e)d PeMrolosDeoXc:u:mNeonntMaotoisoen::Meta::Role::Class(3)
2
3
4
6 MooseX::NonMoose::Meta::Role::Class - metaclass trait for
7 MooseX::NonMoose
8
10 version 0.26
11
13 package Foo;
14 use Moose -traits => 'MooseX::NonMoose::Meta::Role::Class';
15
16 # or
17
18 package My::Moose;
19 use Moose ();
20 use Moose::Exporter;
21
22 Moose::Exporter->setup_import_methods;
23 sub init_meta {
24 shift;
25 my %options = @_;
26 Moose->init_meta(%options);
27 Moose::Util::MetaRole::apply_metaclass_roles(
28 for_class => $options{for_class},
29 metaclass_roles => ['MooseX::NonMoose::Meta::Role::Class'],
30 );
31 return Moose::Util::find_meta($options{for_class});
32 }
33
35 This trait implements everything involved with extending non-Moose
36 classes, other than doing the actual inlining at "make_immutable" time.
37 See MooseX::NonMoose for more details.
38
40 Jesse Luehrs <doy@tozt.net>
41
43 This software is copyright (c) 2014 by Jesse Luehrs.
44
45 This is free software; you can redistribute it and/or modify it under
46 the same terms as the Perl 5 programming language system itself.
47
48
49
50perl v5.32.0 2020-07M-o2o8seX::NonMoose::Meta::Role::Class(3)