1MooseX::AttributeShortcUustesrM:o:CoTosrneatXir:ti::bA:utRttoerldieb:Pu:etAretlSthrDoiorbctuuctmueet(ns3t:)a:tTiroanit::Role::Attribute(3)
2
3
4

NAME

6       MooseX::AttributeShortcuts::Trait::Role::Attribute - Role attribute
7       trait to create builder method
8

VERSION

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

DESCRIPTION

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

ROLE PARAMETERS

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

AROUND METHOD MODIFIERS

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

AFTER METHOD MODIFIERS

38   attach_to_role
39       If we have an inline builder defined in our role options, install it as
40       a method.
41

METHODS

43   builder_method_metaclass()
44       Returns the metaclass we'll use to install a inline builder.
45

SEE ALSO

47       Please see those modules/websites for more information related to this
48       module.
49
50       •   MooseX::AttributeShortcuts
51

BUGS

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

AUTHOR

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.36.0             MooseX::A2t0t2r3i-b0u1t-e2S0hortcuts::Trait::Role::Attribute(3)
Impressum