NAME

Data::Object::Func::Hash::EachNValues

ABSTRACT

Data-Object Hash Function (EachNValues) Class

SYNOPSIS

  use Data::Object::Func::Hash::EachNValues;

  my $func = Data::Object::Func::Hash::EachNValues->new(@args);

  $func->execute;

DESCRIPTION

Data::Object::Func::Hash::EachNValues is a function object for Data::Object::Hash.

METHODS

This package implements the following methods.

execute

  execute() : Object

Executes the function logic and returns the result.

execute example
  my $data = Data::Object::Hash->new({1..8,9,undef});

  my $sets = [];

  my $func = Data::Object::Func::Hash::EachNValues->new(
    arg1 => $data,
    arg2 => 2,
    arg3 => sub { push @$sets, [@_] }
  );

  my $result = $func->execute;

mapping

  mapping() : (Str)

Returns the ordered list of named function object arguments.

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