1MooseX::ClassAttribute:U:sTerraiCto:n:tRroilbeu(t3e)d PeMrolosDeoXc:u:mCelnatsastAitotnribute::Trait::Role(3)
2
3
4

NAME

6       MooseX::ClassAttribute::Trait::Role - A trait for roles with class
7       attributes
8

VERSION

10       version 0.16
11

SYNOPSIS

13         for my $attr ( HasClassAttributes->meta()->get_all_class_attributes() )
14         {
15             print $attr->name();
16         }
17

DESCRIPTION

19       This role adds awareness of class attributes to a role metaclass
20       object. It provides a set of introspection methods that largely
21       parallel the existing attribute methods, except they operate on class
22       attributes.
23

METHODS

25       Every method provided by this role has an analogous method in
26       "Class::MOP::Class" or "Moose::Meta::Class" for regular attributes.
27
28   $meta->has_class_attribute($name)
29   $meta->get_class_attribute($name)
30   $meta->get_class_attribute_list()
31       These methods are exactly like their counterparts in
32       MooseX::ClassAttribute::Trait::Class.
33
34   $meta->add_class_attribute(...)
35       This accepts the same options as the Moose::Meta::Attribute
36       "add_attribute()" method. However, if an attribute is specified as
37       "required" an error will be thrown.
38
39   $meta->remove_class_attribute($name)
40       If the named class attribute exists, it is removed from the role.
41

BUGS

43       See MooseX::ClassAttribute for details.
44

AUTHOR

46         Dave Rolsky <autarch@urth.org>
47
49       This software is Copyright (c) 2010 by Dave Rolsky.
50
51       This is free software, licensed under:
52
53         The Artistic License 2.0
54
55
56
57perl v5.12.2                      2010-07M-o1o5seX::ClassAttribute::Trait::Role(3)
Impressum