Name : perl-accessors-rw-explicit
| |
Version : 0.02
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 9.66
| Date : 2024-08-05 20:42:59
|
Group : Development/Libraries/Perl
| Source RPM : perl-accessors-rw-explicit-0.02-9.66.src.rpm
|
Size : 0.01 MB
| |
Packager : (none)
| |
Summary : RW object attribute accessors, with explicit semantics
|
Description :
ceci n\'est pas un Moose
The purpose of this module is to provide very basic object instance attribute accessors for basic perl5 blessed hash-reference objects.
That is a mouthful. Essentially is is just an exercise in codifying convention, and sensible code reuse. It is not an attempt at a complete object system, with flexible attribute definitions. If you want that, you want Moose, end of.
This module will set up attribute accessors for you though, and allow you to specify a prefix on your getters and setters. It denotes itself as explicit, as it defaults to different names for the getters and setters, namely prepending \"set_\" to setters.
so for foo you would get:
$obj->set_foo( $foo );
and
my $foo = $obj->foo;
These prefixes can be changed by providing options on import.
eg:
use accessors::rw::explicit ({get_prefix => \'you_tell_me_\', set_prefix => \'I_tell_you_\'}, \'foo\');
would provide:
$obj->I_tell_you_foo( $foo )
and
my $foo = $obj->you_tell_me_foo();
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-A/openSUSE_Tumbleweed/noarch |