[ 源代码: libclass-data-inheritable-perl ]
软件包:libclass-data-inheritable-perl(0.08-3)
libclass-data-inheritable-perl 的相关链接
Debian 的资源:
下载源码包 libclass-data-inheritable-perl:
- [libclass-data-inheritable-perl_0.08-3.dsc]
- [libclass-data-inheritable-perl_0.08.orig.tar.gz]
- [libclass-data-inheritable-perl_0.08-3.debian.tar.xz]
维护小组:
外部的资源:
- 主页 [metacpan.org]
相似软件包:
Perl module to create accessors to class data
Class::Data::Inheritable is for creating accessors/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 overridden.
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;