new

Basic constructor. Will populate $self with any parameters passed.

Returns the new instance.

clone

Shallow clone implementation.

Returns a new instance with a copy of everything in the hashref.

dump

Simple method to dump out this object and all attributes.

sap

Generate a coderef that takes a weakened value of $self.

Usage:

 push @handler, $obj->sap(sub {
 	my $self = shift;
	$self->do_something;
 });