1MooseX::ClassAttribute:U:sTerraiCto:n:tCrliabsust(e3d)PMeorolseDXo:c:uCmleanstsaAttitornibute::Trait::Class(3)
2
3
4

NAME

6       MooseX::ClassAttribute::Trait::Class - A trait for classes with class
7       attributes
8

VERSION

10       version 0.29
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 metaclass object. It
20       provides a set of introspection methods that largely parallel the
21       existing attribute methods, except they operate on class attributes.
22

METHODS

24       Every method provided by this role has an analogous method in
25       "Class::MOP::Class" or "Moose::Meta::Class" for regular attributes.
26
27   $meta->has_class_attribute($name)
28   $meta->get_class_attribute($name)
29   $meta->get_class_attribute_list()
30       These methods operate on the current metaclass only.
31
32   $meta->add_class_attribute(...)
33       This accepts the same options as the Moose::Meta::Attribute
34       "add_attribute()" method. However, if an attribute is specified as
35       "required" an error will be thrown.
36
37   $meta->remove_class_attribute($name)
38       If the named class attribute exists, it is removed from the class,
39       along with its accessor methods.
40
41   $meta->get_all_class_attributes()
42       This method returns a list of attribute objects for the class and all
43       its parent classes.
44
45   $meta->find_class_attribute_by_name($name)
46       This method looks at the class and all its parent classes for the named
47       class attribute.
48
49   $meta->get_class_attribute_value($name)
50   $meta->set_class_attribute_value($name, $value)
51   $meta->set_class_attribute_value($name)
52   $meta->clear_class_attribute_value($name)
53       These methods operate on the storage for class attribute values, which
54       is attached to the metaclass object.
55
56       There's really no good reason for you to call these methods unless
57       you're doing some deep hacking. They are named as public methods solely
58       because they are used by other meta roles and classes in this
59       distribution.
60

BUGS

62       See MooseX::ClassAttribute for details.
63
64       Bugs may be submitted through the RT bug tracker
65       <http://rt.cpan.org/Public/Dist/Display.html?Name=MooseX-
66       ClassAttribute> (or bug-moosex-classattribute@rt.cpan.org <mailto:bug-
67       moosex-classattribute@rt.cpan.org>).
68
69       I am also usually active on IRC as 'drolsky' on "irc://irc.perl.org".
70

AUTHOR

72       Dave Rolsky <autarch@urth.org>
73
75       This software is Copyright (c) 2016 by Dave Rolsky.
76
77       This is free software, licensed under:
78
79         The Artistic License 2.0 (GPL Compatible)
80
81
82
83perl v5.34.0                      2022-0M1o-o2s1eX::ClassAttribute::Trait::Class(3)
Impressum