Test::S...jectBase(3)
π Test::Smoke::ObjectBase π
okay so bestie, welcome to Test::Smoke::ObjectBase β it's the base class for objects, and it's giving AUTOLOADed accessors. she's small, she's iconic, she's literally the foundation, periodt. β¨
πΈ DESCRIPTION πΈ
so here's the tea: this base class hands you accessors through AUTOLOAD for any hashkey that starts with an underscore. that's the whole vibe. no cap. π«Ά
like, watch this:
$self->{_name} gives $self->name()
the underscore is the little secret handshake β it's there in the hash, but you call it without the underscore, and AUTOLOAD catches it and does the thing. π
and the accessors aren't just getters, bestie, they're getters and setters. two jobs, one method, main character energy fr fr. π
ngl it's a tiny module but it's doing the most, and we're obsessed with her. π
perl v5.42.0 Β· 2025-07-25 Β· from the User Contributed Perl Documentation crew π β that's a wrap, mwah, bye bestie! π¦π
π¦ where this page comes from
- fedora 43: perl-Test-Smoke 1.84-2.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