Pipeline::Base(3)

πŸ“¦
version 3.12 Β· 2 versions
, in fedora 43

πŸ’… NAME πŸ’…

Pipeline::Base β€” the base class for all classes in the Pipeline distribution. yes, all of them. she's the blueprint, the blueprint-est. this is from the User Contributed Perl Documentation section, i.e. section 3 of the manual, iykyk. πŸŽ€


🌸 SYNOPSIS 🌸

use Pipeline::Base;

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

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so bestie, here's the tea: Pipeline::Base is a class that serves up a basic level of functionality for every single class in the Pipeline system. no gatekeeping, everyone eats. πŸ“

and the most important thing she does?? she handles the construction and initialization of new objects. that's her whole main character job and she does it flawlessly. periodt. πŸ‘‘


✨ METHODS ✨

πŸ’– CLASS->new()

the new() method is a constructor β€” call it and you get back an instance of whatever class received the call. slay, object created, we love to see it. 🫢

🌈 init( LIST );

init() gets called by the constructor, new(), and it's passed all of its arguments in LIST. so whatever you handed to the constructor, init() is holding it now. πŸ’«

πŸ‘‘ debug( [ SCALAR ] )

debug() gets and sets the debug state of the OBJECT. set it to a true value and every message you send to emit() gets printed to the terminal. πŸ–¨οΈβœ¨

heads up bestie: if you call debug() as a class method, it always returns true. no cap.

πŸ”₯ emit( SCALAR )

emit() is a debugging tool, full stop. if the current debugging level is set to a true value, it takes the SCALAR, formats it, and sends it off to the log() method. cute lil pipeline of its own. πŸ’Œ

πŸŽ€ log( SCALAR )

the log() method sends SCALAR to STDERR by default. and here's the thing β€” it does no processing of SCALAR whatsoever, it just yeets the results straight to the error handle. πŸ™ˆ

want a different logging vibe? simply override this method in your class however you see fit. your log, your rules. πŸ’…


🌟 AUTHOR 🌟

James A. Duncan <jduncan@fotango.com> β€” the icon, the legend, the moment. πŸ‘


k that's the whole page bestie, go build something iconic with it πŸŒˆπŸ¦‹

this was Pipeline::Base(3) from perl v5.42.0, dated 2025-07-25. mwah, bye πŸ’‹

πŸ“¦ where this page comes from