PFT::Content::Base(3)
π PFT::Content::Base(3) π
okay so bestie, you found the base class β the blueprint, the moment before the glow-up, the group chat everyone else joins. This is PFT::Content::Base, straight out of the User Contributed Perl Documentation, and yes we're doing this properly. π«Ά
β¨ NAME β¨
PFT::Content::Base β the base class for content. that's it, that's the whole vibe. π
πΈ SYNOPSIS πΈ
here's how you get adopted into the family:
use parent 'PFT::Content::Base'
sub new {
my $cls = shift;
...
$cls->SUPER::new({
tree => $tree,
name => $name,
})
...
}
see that? use parent β you're literally inheriting the whole aura. then you override new, do your little ... thing (iconic), and call $cls->SUPER::new({...}) with your tree and your name. passing it up the chain like a snack. π
π¦ DESCRIPTION π¦
This class is a common base for all PFT::Content::* classes. ALL of them. it's giving founding mother. every single one of those star classes lowkey owes this one everything. β¨
π Properties π
π tree
a Path object. that's the whole description and we respect it. it's a Path object, no notes. π
π name
the name of the object. literally what it's called. main character energy, it has a name and it knows it. π
ngl this page is short but it's load-bearing. everything under PFT::Content::* is built on this. iykyk. π₯
and that's the tea, bestie β perl v5.42.0, dated 2025-07-25, from the User Contributed Perl Documentation. go forth and inherit responsibly. ππ§β
π¦ where this page comes from
- fedora 43: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- fedora 44: perl-PFT 1.4.1-18.fc43 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms