NAME

Hook::Modular::Plugin - base class for plugins constructed with attributes

SYNOPSIS

package My::Test::Plugin::Some::Printer;
use warnings;
use strict;
use base 'Hook::Modular::Plugin::Attribute';

sub do_print :Hook(output.print) {
    # ...
}

DESCRIPTION

NOTE: This is a documentation in progress. Not all features or quirks of this class have been documented yet.

This is a subclass of Hook::Modular::Plugin that provides an attribute for denoting hook subroutines more directly. Plugins wishing to use this attribute should subclass this class.

For everything else related to writing plugins see the documentation of Hook::Modular::Plugin.

ATTRIBUTE

:Hook

Blah.

You can mix attribute-based hook declarations with manual registration. For example:

BUGS AND LIMITATIONS

No bugs have been reported.

Please report any bugs or feature requests through the web interface at http://rt.cpan.org.

INSTALLATION

See perlmodinstall for information and options on installing Perl modules.

AVAILABILITY

The latest version of this module is available from the Comprehensive Perl Archive Network (CPAN). Visit <http://www.perl.com/CPAN/> to find a CPAN site near you. Or see http://search.cpan.org/dist/Hook-Modular/.

AUTHORS

Tatsuhiko Miyagawa <miyagawa@bulknews.net>

Marcel Grünauer, <marcel@cpan.org>

COPYRIGHT AND LICENSE

Copyright 2007-2009 by the authors.

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.