forked from pool/perl-Class-Tiny
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Tiny?expand=0&rev=2
This commit is contained in:
parent
36443a4ad3
commit
4e1ddd8042
@ -43,51 +43,7 @@ BuildRequires: perl(Test::More) >= 0.96
|
||||
|
||||
%description
|
||||
This module offers a minimalist class construction kit in around 120 lines
|
||||
of code. Here is a list of features:
|
||||
|
||||
* *
|
||||
|
||||
defines attributes via import arguments
|
||||
|
||||
* *
|
||||
|
||||
generates read-write accessors
|
||||
|
||||
* *
|
||||
|
||||
supports lazy attribute defaults
|
||||
|
||||
* *
|
||||
|
||||
supports custom accessors
|
||||
|
||||
* *
|
||||
|
||||
superclass provides a standard 'new' constructor
|
||||
|
||||
* *
|
||||
|
||||
'new' takes a hash reference or list of key/value pairs
|
||||
|
||||
* *
|
||||
|
||||
'new' has heuristics to catch constructor attribute typos
|
||||
|
||||
* *
|
||||
|
||||
'new' calls 'BUILD' for each class from parent to child
|
||||
|
||||
* *
|
||||
|
||||
superclass provides a 'DESTROY' method
|
||||
|
||||
* *
|
||||
|
||||
'DESTROY' calls 'DEMOLISH' for each class from child to parent
|
||||
|
||||
It uses no non-core modules for any recent Perl. On Perls older than v5.10
|
||||
it requires the MRO::Compat manpage. On Perls older than v5.14, it requires
|
||||
the Devel::GlobalDestruction manpage.
|
||||
of code.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
|
Loading…
Reference in New Issue
Block a user