NAME

Data::Object::Func

ABSTRACT

Data-Object Function-Object Class

SYNOPSIS

  use Data::Object::Func;

DESCRIPTION

Data::Object::Func is an abstract base class for function classes.

METHODS

This package implements the following methods.

configure

  configure(ClassName $arg1, Any @args) : HashRef

Converts positional args to named args.

configure example
  my $configure = $func->configure();

execute

  execute() : Object

Executes the function logic and returns the result.

execute example
  my $func = Data::Object::Func->new();

  my $result = $func->execute;

mapping

  mapping() : (Str)

Returns the ordered list of named function object arguments.

mapping example
  my @data = $func->mapping;

recurse

  recurse(Object $arg1, Any @args) : Any

Recurses into the function object.

recurse example
  my $recurse = $func->recurse();

unpack

  unpack() : (Any)

Returns a list of positional args from the named args.

unpack example
  my $unpack = $func->unpack();