GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
MooseX::AttributeShortcuts::Trait::Role::Attribute(3) User Contributed Perl Documentation MooseX::AttributeShortcuts::Trait::Role::Attribute(3)

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

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

Normally, attribute options processing takes place at the time an attribute is created and attached to a class, either by virtue of a "has" statement in a class definition or when a role is applied to a class.

This is not an optimal approach for inline builder methods.

This is a role attribute trait, to create builder methods when role attributes are created, so that they can be aliased, excluded, etc, like any other role method.

Parameterized roles accept parameters that influence their construction. This role accepts the following parameters.

If we have an inline builder defined in our role options, swizzle our options such that "builder" becomes the builder method name, and "anon_builder" is the anonymous sub.

If we have an inline builder defined in our role options, install it as a method.

Returns the metaclass we'll use to install a inline builder.

Please see those modules/websites for more information related to this module.
MooseX::AttributeShortcuts

Please report any bugs or feature requests on the bugtracker website <https://github.com/RsrchBoy/moosex-attributeshortcuts/issues>

When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.

Chris Weyl <cweyl@alumni.drew.edu>

This software is Copyright (c) 2017, 2015, 2014, 2013, 2012, 2011 by Chris Weyl.

This is free software, licensed under:

  The GNU Lesser General Public License, Version 2.1, February 1999
2017-11-20 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.