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

12 lines
520 B
Text

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/