NAME
Data::Hopen::G::CollectOp - a no-op
SYNOPSIS
An CollectOp
is a concrete Data::Hopen::G::Op that passes its inputs, or other values drawn from its scope, to its outputs unchanged. For example, CollectOp
instances are used by Data::Hopen::G::DAG to represent goals.
ATTRIBUTES
levels
Which levels of Data::Hopen::Scope to pull from, as defined by "$levels" in Data::Hopen::Scope. Default is 'local'
, i.e., to and including the first Scope encountered that has local set.
FUNCTIONS
_run
Copy the inputs to the outputs. Usage:
my $hrOutputs = $op->run([-context=>$scope])
The output is {}
if no inputs are provided. See "passthrough" in Data::Hopen::G::Runnable for more details.
BUILD
Constructor