1Moose::Meta::Role::AttrUisbeurteC(o3n)tributed Perl DocuMmoeonstea:t:iMoenta::Role::Attribute(3)
2
3
4

NAME

6       Moose::Meta::Role::Attribute - The Moose attribute metaclass for Roles
7

VERSION

9       version 2.2201
10

DESCRIPTION

12       This class implements the API for attributes in roles. Attributes in
13       roles are more like attribute prototypes than full blown attributes.
14       While they are introspectable, they have very little behavior.
15

METHODS

17   Moose::Meta::Role::Attribute->new(...)
18       This method accepts all the options that would be passed to the
19       constructor for Moose::Meta::Attribute.
20
21   $attr->metaclass
22   $attr->is
23       Returns the option as passed to the constructor.
24
25   $attr->associated_role
26       Returns the Moose::Meta::Role to which this attribute belongs, if any.
27
28   $attr->original_role
29       Returns the Moose::Meta::Role in which this attribute was first
30       defined. This may not be the same as the value of "associated_role()"
31       for attributes in a composite role, or when one role consumes other
32       roles.
33
34   $attr->original_options
35       Returns a hash reference of options passed to the constructor. This is
36       used when creating a Moose::Meta::Attribute object from this object.
37
38   $attr->attach_to_role($role)
39       Attaches the attribute to the given Moose::Meta::Role.
40
41   $attr->attribute_for_class($metaclass)
42       Given an attribute metaclass name, this method calls
43       "$metaclass->interpolate_class_and_new" to construct an attribute
44       object which can be added to a Moose::Meta::Class.
45
46   $attr->clone
47       Creates a new object identical to the object on which the method is
48       called.
49
50   $attr->is_same_as($other_attr)
51       Compares two role attributes and returns true if they are identical.
52
53       In addition, this class implements all informational predicates
54       implements by Moose::Meta::Attribute (and Class::MOP::Attribute).
55

BUGS

57       See "BUGS" in Moose for details on reporting bugs.
58

AUTHORS

60       •   Stevan Little <stevan@cpan.org>
61
62       •   Dave Rolsky <autarch@urth.org>
63
64       •   Jesse Luehrs <doy@cpan.org>
65
66       •   Shawn M Moore <sartak@cpan.org>
67
68       •   יובל קוג'מן (Yuval Kogman) <nothingmuch@woobling.org>
69
70       •   Karen Etheridge <ether@cpan.org>
71
72       •   Florian Ragwitz <rafl@debian.org>
73
74       •   Hans Dieter Pearcey <hdp@cpan.org>
75
76       •   Chris Prather <chris@prather.org>
77
78       •   Matt S Trout <mstrout@cpan.org>
79
81       This software is copyright (c) 2006 by Infinity Interactive, Inc.
82
83       This is free software; you can redistribute it and/or modify it under
84       the same terms as the Perl 5 programming language system itself.
85
86
87
88perl v5.34.0                      2022-01-21   Moose::Meta::Role::Attribute(3)
Impressum