Test::S...jectBase(3)

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

πŸ’– 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