Name : perl-Class-Anonymous
| |
Version : 0.03
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : lp156.2.1
| Date : 2024-07-03 17:49:58
|
Group : Development/Libraries/Perl
| Source RPM : perl-Class-Anonymous-0.03-lp156.2.1.src.rpm
|
Size : 0.02 MB
| |
Packager : https://www_suse_com/
| |
Summary : Truly private classes with private data for Perl5
|
Description :
Class::Anonymous implements anonymous classes and private data. This private data is just the lexical variables available during the builder callback(s) that are used to build the class. If Package::Anon is available, then no stash entry is created at all. If not, then the classes will actually be blessed into Class::Anonymous::Instance though this is to be considered an implementation detail and subject to change.
The instance itself is a code reference which can be thought of as a meta-object. Called with a single string fetches the method of that name and returns it. Called with a string and a code reference attaches a new method to the object. Helper functions are provided in Class::Anonymous::Utils which provides Class::Anonymous::Utils/method and method modifiers for ease of use.
my $class = class { my ($self) = AATT_; $self->(mymethod = sub { ... }); my $mymethod = $self->(\'mymethod\'); }
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/15.6/noarch |