The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Pipeline::Base - base class for all classes in Pipeline distribution

SYNOPSIS

  use Pipeline::Base;

  $object = Pipeline::Base->new()
  $object->debug( 10 );
  $object->emit("message");

DESCRIPTION

Pipeline::Base is a class that provides a basic level of functionality for all classes in the Pipeline system. Most importantly it provides the construction and initialization of new objects.

METHODS

CLASS->new()

The new() method is a constructor that returns an instance of receiving class.

OBJECT->init( LIST );

init() is called by the constructor, new() and is passed all of its arguments in LIST.

OBJECT->debug( [ SCALAR ] )

The debug() method gets and sets the debug state of the OBJECT. Setting it to a true value will cause messages sent to emit() to be printed to the terminal.

OBJECT->emit( SCALAR )

emit() is a debugging tool. It will output SCALAR to STDERR, along with the class the message was sent from.

AUTHOR

James A. Duncan <jduncan@fotango.com>