Author image Simon Bertrang

NAME

Pipeworks::Stage::Callback - light wrapper to put closures in stages

SYNOPSIS

  my $stage = Pipeworks::Stage::Callback->new( sub { ... } );
  
  $stage->process( ... );

DESCRIPTION

This simple stage class just takes a code reference and blesses into its namespace in order to provide a process() method for compatibility with the pipeline calling convention.