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

Gungho::Base - Base Class For Various Gungho Objects

SYNOPSIS

package Gungho::Something;
use base qw(Gungho::Base);

MMETHODS

new(\%config)

Creates a new object instance. Takes a config hashref.

setup()

Sets up the object. Use it like this in your object:

sub setup
{
   my $self = shift;
   # do custom setup
   $self->next::method(@_);
}

mk_virtual_methods

Creates virtual methods (methods that must be overridden). These methods will die() unless you provide an implementation in your subclass