1MooseX::SemiAffordanceAUcsceerssCoorn(t3r)ibuted Perl DoMcouomseenXt:a:tSieomniAffordanceAccessor(3)
2
3
4
6 MooseX::SemiAffordanceAccessor - Name your accessors foo() and
7 set_foo()
8
10 version 0.08
11
13 use Moose;
14 use MooseX::SemiAffordanceAccessor;
15
16 # make some attributes
17
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
34 Please report any bugs or feature requests to
35 "bug-moosex-semiaffordanceaccessor@rt.cpan.org", or through the web
36 interface at <http://rt.cpan.org>. I will be notified, and then you'll
37 automatically be notified of progress on your bug as I make changes.
38
40 Dave Rolsky <autarch@urth.org>
41
43 This software is Copyright (c) 2010 by Dave Rolsky.
44
45 This is free software, licensed under:
46
47 The Artistic License 2.0
48
49
50
51perl v5.12.1 2010-08-27 MooseX::SemiAffordanceAccessor(3)