Daisuke Maki > Gungho > Gungho::Base

Download:
Gungho-0.09008.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  6
Open  4
View/Report Bugs
Source  

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

syntax highlighting: