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