1MooseX::SemiAffordanceAUcsceerssCoorn(t3r)ibuted Perl DoMcouomseenXt:a:tSieomniAffordanceAccessor(3)
2
3
4

NAME

6       MooseX::SemiAffordanceAccessor - Name your accessors foo() and
7       set_foo()
8

VERSION

10       version 0.10
11

SYNOPSIS

13           use Moose;
14           use MooseX::SemiAffordanceAccessor;
15
16           # make some attributes
17

DESCRIPTION

19       This module does not provide any methods. Simply loading it changes the
20       default naming policy for the loading class so that accessors are
21       separated into get and set methods. The get methods have the same name
22       as the accessor, while set methods are prefixed with "set_".
23
24       If you define an attribute with a leading underscore, then the set
25       method will start with "_set_".
26
27       If you explicitly set a "reader" or "writer" name when creating an
28       attribute, then that attribute's naming scheme is left unchanged.
29
30       The name "semi-affordance" comes from David Wheeler's Class::Meta
31       module.
32

ACCESSORS IN ROLES

34       Prior to version 1.9900 of Moose, attributes added to a class ended up
35       with that class's attribute traits. That means that if your class used
36       "MooseX::SemiAffordanceAccessor", any attributes provided by roles you
37       consumed had the semi-affordance style of accessor.
38
39       As of Moose 1.9900, that is no longer the case. Attributes provided by
40       roles no longer acquire the consuming class's attribute traits.
41       However, with Moose 1.9900+, you can now use
42       "MooseX::SemiAffordanceAccessor" directly in roles. Attributes defined
43       by that role will have semi-affordance style accessors, regardless of
44       what attribute traits the consuming class has.
45

BUGS

47       Please report any bugs or feature requests to
48       "bug-moosex-semiaffordanceaccessor@rt.cpan.org", or through the web
49       interface at <http://rt.cpan.org>.  I will be notified, and then you'll
50       automatically be notified of progress on your bug as I make changes.
51

AUTHOR

53       Dave Rolsky <autarch@urth.org>
54
56       This software is Copyright (c) 2011 by Dave Rolsky.
57
58       This is free software, licensed under:
59
60         The Artistic License 2.0 (GPL Compatible)
61
62
63
64perl v5.38.0                      2023-07-21 MooseX::SemiAffordanceAccessor(3)
Impressum