Name your accessors foo() and set_foo()
http://search.cpan.org/dist/MooseX-SemiAffordanceAccessor/
This module does not provide any methods. Simply loading it changes the
default naming policy for the loading class so that accessors are separated
into get and set methods. The get methods have the same name as the
accessor, while set methods are prefixed with "set_".
If you define an attribute with a leading underscore, then the set method
will start with "_set_".
If you explicitly set a "reader" or "writer" name when creating an
attribute, then that attribute's naming scheme is left unchanged.
The name "semi-affordance" comes from David Wheeler's Class::Meta module.
- Developed at devel:languages:perl
- Sources inherited from project openSUSE:Factory
-
1
derived packages
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Factory:Rebuild/perl-MooseX-SemiAffordanceAccessor && cd $_
- Create Badge
Refresh
Refresh
Source Files
Filename | Size | Changed |
---|---|---|
MooseX-SemiAffordanceAccessor-0.09.tar.gz | 0000009777 9.55 KB | |
perl-MooseX-SemiAffordanceAccessor-use_lib.patch | 0000000984 984 Bytes | |
perl-MooseX-SemiAffordanceAccessor.changes | 0000000853 853 Bytes | |
perl-MooseX-SemiAffordanceAccessor.spec | 0000002552 2.49 KB |
Revision 1 (latest revision is 6)
Stephan Kulow (coolo)
accepted
request 98172
from
Stephan Kulow (coolo)
(revision 1)
new perl package
Comments 0