1MooseX::AttributeShortcUustesr::CTornatirMtio:bo:usAteteXtd:r:iPAbeturttlrei(Db3ou)ctuemSehnotrattciuotns::Trait::Attribute(3)
2
3
4

NAME

6       MooseX::AttributeShortcuts::Trait::Attribute - Shortcuts attribute
7       trait proper
8

VERSION

10       This document describes version 0.037 of
11       MooseX::AttributeShortcuts::Trait::Attribute - released November 20,
12       2017 as part of MooseX-AttributeShortcuts.
13

DESCRIPTION

15       This is the actual attribute trait that implements
16       MooseX::AttributeShortcuts.  You should consult that package's
17       documentation for information on any of the new attribute options;
18       we're mainly going to document the additional attributes, methods, and
19       role parameters that this role provides.
20
21       All methods we include that chain off Moose's "_process_options()" are
22       prefixed with "_mxas_" and generally are not documented in the POD; we
23       document any internal methods of Moose::Meta::Attribute that we wrap or
24       otherwise override we document here as well.
25

ROLE PARAMETERS

27       Parameterized roles accept parameters that influence their
28       construction.  This role accepts the following parameters.
29
30   writer_prefix
31   builder_prefix

ATTRIBUTES

33   constraint
34       CodeRef, read-only.
35
36   original_isa
37   trigger_method
38       Contains the name of the method that will be invoked as a trigger.
39

BEFORE METHOD MODIFIERS

41   _process_options
42       Here we wrap _process_options() instead of the newer
43       _process_is_option(), as that makes our life easier from a Moose
44       1.x/2.x compatibility perspective -- and that we're generally altering
45       more than just the 'is' option at one time.
46

AROUND METHOD MODIFIERS

48   _make_delegation_method
49       Here we create and install any custom accessors that have been defined.
50

AFTER METHOD MODIFIERS

52   attach_to_class
53       We hijack attach_to_class in order to install our anon_builder, if we
54       have one.  Note that we don't go the normal
55       associate_method/install_accessor/etc route as this is kinda...
56       different.  (That is, the builder is not an accessor of this attribute,
57       and should not be installed as such.)
58

METHODS

60   has_constraint
61       Predicate for the "constraint" attribute.
62
63   has_original_isa
64       Predicate for the "original_isa" attribute.
65
66   has_trigger_method
67       Predicate for the "trigger_method" attribute.
68
69   builder_method_metaclass()
70       Returns the metaclass we'll use to install a inline builder.
71
72   canonical_writer_prefix
73       Returns the writer prefix; this is almost always "set_".
74
75   canonical_builder_prefix
76       Returns the builder prefix; this is almost always "_build_".
77

PREFIXES

79       We accept two parameters on the use of this module; they impact how
80       builders and writers are named.
81
82   -writer_prefix
83           use MooseX::::AttributeShortcuts -writer_prefix => 'prefix';
84
85       The default writer prefix is "_set_".  If you'd prefer it to be
86       something else (say, "_"), this is where you'd do that.
87
88   -builder_prefix
89           use MooseX::AttributeShortcuts -builder_prefix => 'prefix';
90
91       The default builder prefix is "_build_", as this is what "lazy_build"
92       in Moose does, and what people in general recognize as build methods.
93

SEE ALSO

95       Please see those modules/websites for more information related to this
96       module.
97
98       •   MooseX::AttributeShortcuts
99

BUGS

101       Please report any bugs or feature requests on the bugtracker website
102       <https://github.com/RsrchBoy/moosex-attributeshortcuts/issues>
103
104       When submitting a bug or request, please include a test-file or a patch
105       to an existing test-file that illustrates the bug or desired feature.
106

AUTHOR

108       Chris Weyl <cweyl@alumni.drew.edu>
109
111       This software is Copyright (c) 2017, 2015, 2014, 2013, 2012, 2011 by
112       Chris Weyl.
113
114       This is free software, licensed under:
115
116         The GNU Lesser General Public License, Version 2.1, February 1999
117
118
119
120perl v5.36.0                   Moo2s0e2X2:-:0A7t-t2r2ibuteShortcuts::Trait::Attribute(3)
Impressum