NAME

Raisin::Plugin - Base class for Raisin plugins

VERSION

version 0.92

SYNOPSIS

    package Raisin::Plugin::Hello;
    use parent 'Raisin::Plugin';

    sub build {
        my ($self, %args) = @_;
        $self->register(hello => sub { print 'Hello!' });
    }

DESCRIPTION

Provides the base class for creating Raisin plugins.

METHODS

build

Main method for each plugin.

register

Registers one or many methods into the application.

    $self->register(hello => sub { print 'Hello!' });

AUTHOR

Artur Khabibullin

COPYRIGHT AND LICENSE

This software is copyright (c) 2019 by Artur Khabibullin.

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