The Perl and Raku Conference 2025: Greenville, South Carolina - June 27-29 Learn more

NAME

Data::Couplet::Role::Plugin - A Generalised Role for classes to extend Data::Couplet via aggregation.

VERSION

version 0.02004314

SYNOPSIS

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.

WRITING PLUGINS

with Data::Couplet::Role::Plugin;
sub foo {
}

USING PLUGINS

There are many other ways of doing it, but this way is the most recommended.

use Moose;
extends 'Data::Couplet';
__PACKAGE__->meta->make_immutable;
1;

Then later

my $DC->new();
... etc ...

AUTHOR

Kent Fredric <kentnl at cpan.org>

COPYRIGHT AND LICENSE

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.