mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-26 05:02:18 +00:00
43ed0df44d
accessors foo() and set_foo().
13 lines
520 B
Plaintext
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/
|