Package: perl-Class-Data-Inheritable (0.08-59.24)
Inheritable, overridable class data
Class::Data::Inheritable is for creating accessor/mutators to class data. That is, if you want to store something about your class as a whole (instead of about a single object). This data is then inherited by your subclasses and can be overriden. For example: Pere::Ubu->mk_classdata('Suitcase'); will generate the method Suitcase() in the class Pere::Ubu. This new method can be used to get and set a piece of class data. Pere::Ubu->Suitcase('Red'); $suitcase = Pere::Ubu->Suitcase; The interesting part happens when a class inherits from Pere::Ubu: package Raygun; use base qw(Pere::Ubu); $suitcase = Raygun->Suitcase; Raygun inherits its Suitcase class data from Pere::Ubu. Inheritance of class data works analogous to method inheritance. As long as Raygun does not "override" its inherited class data (by using Suitcase() to set a new value) it will continue to use whatever is set in Pere::Ubu and inherit further changes: Pere::Ubu->Suitcase('Blue'); However, should Raygun decide to set its own Suitcase() it has now "overridden" Pere::Ubu and is on its own, just like if it had overriden a method: Raygun->Suitcase('Orange'); Now that Raygun has overridden Pere::Ubu futher changes by Pere::Ubu no longer effect Raygun. Pere::Ubu->Suitcase('Samsonite'); Authors: -------- Original code by Damian Conway. Maintained by Michael G Schwern until September 2005. Now maintained by Tony Bowden.
Package information
- Homepage
- [http://search.cpan.org/dist/Class-Data-Inheritable/]
- License
- GPL-1.0+ or Artistic-1.0
- Maintainer del pacchetto downstream
- Sconosciuto: non segnalato nella fonte indicizzata
- Pacchetto sorgente
- [perl-Class-Data-Inheritable]
- Software project
- [perl-Class-Data-Inheritable]
Versions and downloads for perl-Class-Data-Inheritable
| Version / release | Architecture / repository | Package size | Installed size | Files | Publisher repository artifact |
|---|---|---|---|---|---|
| 0.08-59.24leap-15.6 / oss | noarchopenSUSE Leap 15.6 · OSS · multi-architecture | 16 KiB | 11 KiB | list of files | perl-Class-Data-Inheritable-0.08-59.24.noarch.rpm |
About these downloads
Ogni riga è metadato dell'indice pacchetti per una versione, architettura, suite e repository. Nomi, URL e dimensioni arrivano dalla fonte; un link è un punto di recupero mutabile, non una redistribuzione OpenFactory.
Dependencies and recommendations for perl-Class-Data-Inheritable
dep: perl(:MODULE_COMPAT_5.26.1)
Package not available
Percorsi file del pacchetto (8)
Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.
- /usr/lib/perl5/vendor_perl/5.26.1/Class
- /usr/lib/perl5/vendor_perl/5.26.1/Class/Data
- /usr/lib/perl5/vendor_perl/5.26.1/Class/Data/Inheritable.pm
- /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
- /usr/share/doc/packages/perl-Class-Data-Inheritable
- /usr/share/doc/packages/perl-Class-Data-Inheritable/Changes
- /usr/share/doc/packages/perl-Class-Data-Inheritable/README
- /usr/share/man/man3/Class::Data::Inheritable.3pm.gz
Field source: openSUSE Leap 15.6 OSS
