Mail::...::Base(3pm)

πŸ“¦
version 1.04 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– Mail::ListDetector::Detector::Base πŸ’–

okay bestie so this is the Mail::ListDetector::Detector::Base page from the User Contributed Perl Documentation, section 3pm. it's short, it's sweet, it's giving "the blueprint that other classes are built from." let's get into it πŸ¦‹


✨ NAME ✨

Mail::ListDetector::Detector::Base β€” the base class for mailing list detectors. like, the founding mother of the whole detector family πŸ’…


🌸 SYNOPSIS 🌸

use Mail::ListDetector::Detector::Base;

that's it. that's the whole vibe. you pull it in and off you go ✨


πŸŽ€ DESCRIPTION πŸŽ€

so basically: this is an abstract base class for mailing list detectors. it's the ancestor, the blueprint, the main character that never actually shows up on screen.

🚨 real talk bestie: you should not instantiate this directly. no cap. it's abstract, meaning it exists to be inherited from, not to be used on its own. trying to use it standalone is not the move πŸ™ˆ

πŸ‘‘ METHODS πŸ‘‘

πŸ’œ new()

gives you a nice little constructor for the class 🫢

it takes an optional data argument, and if you do supply it, it gets stored in the object. if you don't? no biggie, it just doesn't store anything. lowkey chill behaviour fr fr.


πŸ’€ match()

bestie. this one just dies. πŸ’€

that's the whole thing. it's a placeholder β€” it's supposed to be implemented in any subclass. so if you're writing a detector of your own, this is the method you gotta override. if you don't, expect the dying. it's literally in the job description.


πŸ› BUGS πŸ›

No known bugs. ✨ flawless, iconic, no notes, periodt. πŸ’…


🌈 AUTHOR 🌈

Michael Stevens β€” michael@etla.org. king behaviour honestly πŸ‘‘


πŸ“ and that's the page, bestie πŸ“

this doc was rendered by perl v5.36.0, dated 2022-11-29, and it's filed under Mail::...::Base(3pm). thanks for reading, ily, go implement match() in your subclass πŸ’–πŸ§šπŸŒΈ

πŸ“¦ where this page comes from