The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

App::Hachero::Plugin::Base - base class of plugin for App::Hachero

SYNOPSYS

package App::Hachero::Plugin::Analyze::MyAnalyzer;
use base App::Hachero::Plugin::Base;

sub init {
    my ($self, $app) = @_;
    # prepare something
}

sub analyzer : Hook {
    my ($self, $context) = @_;
    # do something
}

1;

DESCRIPTION

base class of App::Hachero plugin. You can subclass this to implement your analyzer or other plugins.

preparation

you can setup your plugin in init method.

  • init($self, $app)

    $self is instanciated plugin object and so you can setup your plugin before running hooks. $app is not application instance but classname "App::Hachero" string.

available hooks

METHODS

new

Constructor. You don't need to think about it.

AUTHOR

Takaaki Mizuno <cpan@takaaki.info>

Nobuo Danjou <nobuo.danjou@gmail.com>

SEE ALSO

App::Hachero