1metaclass(3)          User Contributed Perl Documentation         metaclass(3)
2
3
4

NAME

6       metaclass - a pragma for installing and using Class::MOP metaclasses
7

SYNOPSIS

9         package MyClass;
10
11         # use Class::MOP::Class
12         use metaclass;
13
14         # ... or use a custom metaclass
15         use metaclass 'MyMetaClass';
16
17         # ... or use a custom metaclass
18         # and custom attribute and method
19         # metaclasses
20         use metaclass 'MyMetaClass' => (
21             'attribute_metaclass' => 'MyAttributeMetaClass',
22             'method_metaclass'    => 'MyMethodMetaClass',
23         );
24
25         # ... or just specify custom attribute
26         # and method classes, and Class::MOP::Class
27         # is the assumed metaclass
28         use metaclass (
29             'attribute_metaclass' => 'MyAttributeMetaClass',
30             'method_metaclass'    => 'MyMethodMetaClass',
31         );
32

DESCRIPTION

34       This is a pragma to make it easier to use a specific metaclass and a
35       set of custom attribute and method metaclasses. It also installs a
36       "meta" method to your class as well.
37

AUTHORS

39       Stevan Little <stevan@iinteractive.com>
40
42       Copyright 2006-2010 by Infinity Interactive, Inc.
43
44       <http://www.iinteractive.com>
45
46       This library is free software; you can redistribute it and/or modify it
47       under the same terms as Perl itself.
48
49
50
51perl v5.12.2                      2010-09-13                      metaclass(3)
Impressum