SEARCH
NEW RPMS
DIRECTORIES
ABOUT
FAQ
VARIOUS
BLOG

 
 

perl-Class-Data-ConfigHash rpm build for : openSUSE Tumbleweed. For other distributions click perl-Class-Data-ConfigHash.

Name : perl-Class-Data-ConfigHash
Version : 0.00002 Vendor : obs://build_opensuse_org/devel:languages:perl
Release : 10.43 Date : 2024-08-05 19:58:04
Group : Development/Libraries/Perl Source RPM : perl-Class-Data-ConfigHash-0.00002-10.43.src.rpm
Size : 0.01 MB
Packager : (none)
Summary : Add Catalyst-style config to your class
Description :
I often times find myself wanting a per-class config that can be used to
provide sane class-level defaults, but with the ability to easily customize
the values at run time.

package MyClass;
__PACKAGE__->config({
foo => 1,
bar => 2
});


my %config = read_config_from_file() ; # say, %config = ( foo => 3 )
MyClass->config(\\%config);

MyClass->config->{foo}; # yields 3
MyClass->config->{bar}; # yields 2

The idea is that you can hardcode the defaults in your class, but you can
also easily override them by merging the original hash with a newly given
hash. This feature is handled beautifully in Catalyst.

So there, this module is basically that feature from Catalyst ripped out to
a separate module so it can be used elsewhere.

To use, simply subclass it in your module:

package MyClass;
use base qw(Class::Data::ConfigHash);

Done! Now you can use ->config in MyClass.

RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-C/openSUSE_Tumbleweed/noarch

Content of RPM  Provides Requires

Download
ftp.icm.edu.pl  perl-Class-Data-ConfigHash-0.00002-10.43.noarch.rpm
     

Provides :
perl(Class::Data::ConfigHash)
perl-Class-Data-ConfigHash

Requires :
perl(:MODULE_COMPAT_5.40.0)
perl(Class::Data::Inheritable)
rpmlib(CompressedFileNames) <= 3.0.4-1
rpmlib(FileDigests) <= 4.6.0-1
rpmlib(PayloadFilesHavePrefix) <= 4.0-1
rpmlib(PayloadIsZstd) <= 5.4.18-1


Content of RPM :
/usr/lib/perl5/vendor_perl/5.40.0/Class
/usr/lib/perl5/vendor_perl/5.40.0/Class/Data
/usr/lib/perl5/vendor_perl/5.40.0/Class/Data/ConfigHash.pm
/usr/share/doc/packages/perl-Class-Data-ConfigHash
/usr/share/doc/packages/perl-Class-Data-ConfigHash/Changes
/usr/share/man/man3/Class::Data::ConfigHash.3pm.gz

 
ICM