Pipeline::Base(3)
π 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
- fedora 43: perl-Pipeline 3.12-51.fc43 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms