From Code to Community: Sponsoring The Perl and Raku Conference 2025 Learn more

# Data::Hopen::G::Link - base class for hopen edges
use Data::Hopen qw(:default UNSPECIFIED);
our $VERSION = '0.000009'; # TRIAL
greedy => 0
};
=head1 NAME
Data::Hopen::G::Link - The base class for all hopen links between ops.
=head1 VARIABLES
=head2 greedy
If set truthy in the C<new()> call, the edge will ask for all inputs.
=head1 FUNCTIONS
=head2 run
Copy the inputs to the outputs.
my $hrOutputs = $op->run($scope)
The output is C<{}> if no inputs are provided.
=cut
sub _run {
my ($self, %args) = parameters('self', [qw(; phase generator)], @_);
return $self->passthrough(-nocontext => 1);
} #run()
=head2 BUILD
Constructor. Interprets L</greedy>.
=cut
sub BUILD {
my ($self, $args) = @_;
$self->want(UNSPECIFIED) if $args->{greedy};
#hlog { 'Link::BUILD', Dumper($self), Dumper($args) };
#hlog { 'Link::BUILD', Dumper($self->scope) };
} #BUILD()
1;
__END__
# vi: set fdm=marker: #