1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/devel/p5-MooseX-Policy-SemiAffordanceAccessor/pkg-descr
Sergey Skvortsov 43ed0df44d Add p5-MooseX-Policy-SemiAffordanceAccessor 0.02, a policy to name
accessors foo() and set_foo().
2008-02-25 15:55:18 +00:00

13 lines
520 B
Plaintext

This class while loading changes the default naming policy for the
package 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 this policy skips that attribute.
WWW: http://search.cpan.org/dist/MooseX-Policy-SemiAffordanceAccessor/