public
Description: a perl module for manipulating mix-in and inheritance of packages from outside
Homepage: http://search.cpan.org/~shelling/Class-Implant/
Clone URL: git://github.com/shelling/class-implant.git
name age message
file .gitignore Thu Apr 02 03:40:37 -0700 2009 add Changes, README, .gitignore [shelling]
file Changes Tue Apr 07 08:24:08 -0700 2009 edit Changes [shelling]
file MANIFEST.SKIP Mon Apr 06 11:11:17 -0700 2009 ignore README.markdown [shelling]
file README.markdown Fri Apr 10 08:23:25 -0700 2009 new README [shelling]
file dist.ini Fri Apr 10 07:41:05 -0700 2009 implement match option [shelling]
directory examples/ Fri Apr 10 07:41:05 -0700 2009 implement match option [shelling]
directory lib/ Sun Apr 26 21:28:09 -0700 2009 add a test to make sure it does not break when ... [gugod]
directory t/ Sun Apr 26 21:28:09 -0700 2009 add a test to make sure it does not break when ... [gugod]
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