new

# given sub { shift + 1 }

my $code = Data::Object::Base::Code->new(sub { shift + 1 });

The new method expects a code reference and returns a new class instance.

new(CodeRef $arg1) : Object

method

5 POD Errors

The following errors were encountered while parsing the POD:

Around line 10:

Unknown directive: =name

Around line 14:

Unknown directive: =usage

Around line 20:

Unknown directive: =description

Around line 24:

Unknown directive: =signature

Around line 28:

Unknown directive: =type