This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | ||
| |
Changes | ||
| |
MANIFEST.SKIP | ||
| |
README.markdown | ||
| |
dist.ini | ||
| |
examples/ | ||
| |
lib/ | ||
| |
t/ |
README.markdown
Class-Implant
Manipulating mixin and inheritance outside of packages
INSTALLATION
To install this module type the following:
perl Makefile.PL
make
make test
make install
USAGE
There are two ways to use Class::Implant.
Classical way as follows.
packagg Cat;
use Class::Implant;
implant qw(Foo Bar Baz), { inherit => 1, match => qr{pattern} };
# import all methods from Foo, Bar, Baz into Cat
Procudural way
packagg main;
use Class::Implant;
implant qw(Foo Baz), {
into => "Cat",
match => qr{pattern}
include => [qw(foo bar)],
exclude => [qw(baz kao)],
};
implant "Baz", {
into => "Cat",
spec => [qw(che tou)],
}
Remark: while "spec" appear in options, "match", "include", and "exclude" would not work.
DEPENDENCIES
This module requires these other modules and libraries:
Exporter
Class::Inspector
SEE ALSO
UNIVERSAL::implant
COPYRIGHT AND LICENCE
Copyright (C) 2009 by shelling
MIT(X11) Licence








