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

NAME

6       Moose::Meta::Role::Attribute - A Moose Attribute metaclass for Roles
7

DESCRIPTION

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

METHODS

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

BUGS

53       See "BUGS" in Moose for details on reporting bugs.
54

AUTHOR

56       Dave Rolsky <autarch@urth.org>
57
59       Copyright 2006-2010 by Infinity Interactive, Inc.
60
61       <http://www.iinteractive.com>
62
63       This library is free software; you can redistribute it and/or modify it
64       under the same terms as Perl itself.
65
66
67
68perl v5.12.2                      2010-08-28   Moose::Meta::Role::Attribute(3)
Impressum