| Gungho documentation | view source | Contained in the Gungho distribution. |
Gungho::Base - Base Class For Various Gungho Objects
package Gungho::Something; use base qw(Gungho::Base);
Creates a new object instance. Takes a config hashref.
Sets up the object. Use it like this in your object:
sub setup
{
my $self = shift;
# do custom setup
$self->next::method(@_);
}
Creates virtual methods (methods that must be overridden).
These methods will die() unless you provide an implementation in your
subclass
| Gungho documentation | view source | Contained in the Gungho distribution. |