Daisuke Maki
and 1 contributors

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