NAME
Data::Object::Base::Code
ABSTRACT
Data-Object Abstract Code Class
SYNOPSIS
package My::Code;
use parent 'Data::Object::Base::Code';
my $code = My::Code->new(sub { shift + 1 });
DESCRIPTION
Data::Object::Base::Code provides routines for operating on Perl 5 code references.
METHODS
This package implements the following methods.
new
new(CodeRef $arg1) : Object
The new method expects a code reference and returns a new class instance.