• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

lib/MooseX/H05-Oct-2014-18248

t/H05-Oct-2014-652472

ChangesH A D05-Oct-20141.2 KiB6230

INSTALLH A D05-Oct-20141 KiB4524

LICENSEH A D05-Oct-20148.8 KiB208154

MANIFESTH A D05-Oct-2014555 2827

META.jsonH A D05-Oct-201420.6 KiB638636

META.ymlH A D05-Oct-201413.2 KiB466465

Makefile.PLH A D05-Oct-20141.5 KiB7254

README.mdH A D05-Oct-20141.9 KiB6441

dist.iniH A D05-Oct-2014332 1613

README.md

1# NAME
2
3MooseX::SemiAffordanceAccessor - Name your accessors foo() and set\_foo()
4
5# VERSION
6
7version 0.10
8
9# SYNOPSIS
10
11    use Moose;
12    use MooseX::SemiAffordanceAccessor;
13
14    # make some attributes
15
16# DESCRIPTION
17
18This module does not provide any methods. Simply loading it changes
19the default naming policy for the loading class so that accessors are
20separated into get and set methods. The get methods have the same name
21as the accessor, while set methods are prefixed with "set\_".
22
23If you define an attribute with a leading underscore, then the set
24method will start with "\_set\_".
25
26If you explicitly set a "reader" or "writer" name when creating an
27attribute, then that attribute's naming scheme is left unchanged.
28
29The name "semi-affordance" comes from David Wheeler's Class::Meta
30module.
31
32# ACCESSORS IN ROLES
33
34Prior to version 1.9900 of [Moose](https://metacpan.org/pod/Moose), attributes added to a class ended up with
35that class's attribute traits. That means that if your class used
36`MooseX::SemiAffordanceAccessor`, any attributes provided by roles you
37consumed had the semi-affordance style of accessor.
38
39As of Moose 1.9900, that is no longer the case. Attributes provided by roles
40no longer acquire the consuming class's attribute traits. However, with Moose
411.9900+, you can now use `MooseX::SemiAffordanceAccessor` directly in
42roles. Attributes defined by that role will have semi-affordance style
43accessors, regardless of what attribute traits the consuming class has.
44
45# BUGS
46
47Please report any bugs or feature requests to
48`bug-moosex-semiaffordanceaccessor@rt.cpan.org`, or through
49the web interface at [http://rt.cpan.org](http://rt.cpan.org).  I will be notified, and
50then you'll automatically be notified of progress on your bug as I
51make changes.
52
53# AUTHOR
54
55Dave Rolsky <autarch@urth.org>
56
57# COPYRIGHT AND LICENSE
58
59This software is Copyright (c) 2011 by Dave Rolsky.
60
61This is free software, licensed under:
62
63    The Artistic License 2.0 (GPL Compatible)
64