Tom Molesworth > EntityModel-Class-0.012 > EntityModel::BaseClass

Download:
EntityModel-Class-0.012.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.012   Source   Latest Release: EntityModel-Class-0.015

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;
 });
syntax highlighting: