Data::Couplet::Role::Plugin - A Generalised Role for classes to extend Data::Couplet via aggregation.
version 0.02004314
Currently this role is nothing special, it does nothing apart from let me know that a class doesn't just have a special name. This could change later, but its bare bones for a start.
package Data::Couplet::Plugin::MyPluginName; use Moose::Role; with Data::Couplet::Role::Plugin; sub foo { }
There are many other ways of doing it, but this way is the most recommended.
package My::Package::DataCouplet; use Moose; extends 'Data::Couplet'; with 'Data::Couplet::Plugin::MyPluginName'; __PACKAGE__->meta->make_immutable; 1;
Then later
use aliased 'My::Package::DataCouplet' => 'DC'; my $DC->new(); ... etc ...
Kent Fredric <kentnl at cpan.org>
This software is copyright (c) 2011 by Kent Fredric.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Data::Couplet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Data::Couplet
CPAN shell
perl -MCPAN -e shell install Data::Couplet
For more information on module installation, please visit the detailed CPAN module installation guide.