1MooseX::AttributeShortcUustesrM:o:CoTosrneatXir:ti::bA:utRttoerldieb:Pu:etAretlSthrDoiorbctuuctmueet(ns3t:)a:tTiroanit::Role::Attribute(3)
2
3
4
6 MooseX::AttributeShortcuts::Trait::Role::Attribute - Role attribute
7 trait to create builder method
8
10 This document describes version 0.037 of
11 MooseX::AttributeShortcuts::Trait::Role::Attribute - released November
12 20, 2017 as part of MooseX-AttributeShortcuts.
13
15 Normally, attribute options processing takes place at the time an
16 attribute is created and attached to a class, either by virtue of a
17 "has" statement in a class definition or when a role is applied to a
18 class.
19
20 This is not an optimal approach for inline builder methods.
21
22 This is a role attribute trait, to create builder methods when role
23 attributes are created, so that they can be aliased, excluded, etc,
24 like any other role method.
25
27 Parameterized roles accept parameters that influence their
28 construction. This role accepts the following parameters.
29
30 builder_prefix
32 new
33 If we have an inline builder defined in our role options, swizzle our
34 options such that "builder" becomes the builder method name, and
35 "anon_builder" is the anonymous sub.
36
38 attach_to_role
39 If we have an inline builder defined in our role options, install it as
40 a method.
41
43 builder_method_metaclass()
44 Returns the metaclass we'll use to install a inline builder.
45
47 Please see those modules/websites for more information related to this
48 module.
49
50 • MooseX::AttributeShortcuts
51
53 Please report any bugs or feature requests on the bugtracker website
54 <https://github.com/RsrchBoy/moosex-attributeshortcuts/issues>
55
56 When submitting a bug or request, please include a test-file or a patch
57 to an existing test-file that illustrates the bug or desired feature.
58
60 Chris Weyl <cweyl@alumni.drew.edu>
61
63 This software is Copyright (c) 2017, 2015, 2014, 2013, 2012, 2011 by
64 Chris Weyl.
65
66 This is free software, licensed under:
67
68 The GNU Lesser General Public License, Version 2.1, February 1999
69
70
71
72perl v5.32.1 MooseX::A2t0t2r1i-b0u1t-e2S7hortcuts::Trait::Role::Attribute(3)