Bread:...hClass(3pm)
π Bread::Board::Service::WithClass(3pm) β the role that's giving "classy service" π
okay bestie, listen up, this one lives in the User Contributed Perl Documentation section of your man pages, and honestly? she's a supporting character but she's essential. main character energy in a side-role package, iykyk.
β¨ NAME β¨
Bread::Board::Service::WithClass β the role for services that hand you back instances of a given class π
πΈ VERSION πΈ
this is version 0.37, no cap.
π¦ DESCRIPTION π¦
so. this is a sub-role of Bread::Board::Service, right? and she exists specifically for the services that return instances of a given class. that's it. that's the whole job. she's the "you have a class, I will make you one" girlie π
π ATTRIBUTES π
π "class"
a read/write string attribute, bestie. it's the name of the class that this service will probably instantiate. yes, the docs literally say "probably", and honestly? relatable. we don't gatekeep, we don't overpromise. π«Ά
π₯ METHODS π₯
β "has_class"
the predicate for the "class" attribute. it's true if "class" has actually been set. so if nobody set it, she's like... nope, not today. π
β¨ "get"
okay this is the juicy one. this role adds a before modifier to the "get" method, which makes sure the module implementing the "class" gets loaded first. no more "wait, who is this class, I've never met her" energy. she loads her before she runs. periodt. π
πΈ AUTHOR πΈ
Stevan Little <stevan@iinteractive.com> β we stan. π
π BUGS π
found a bug? want a feature? bestie, please take it to the bugtracker, don't just yell into the void:
https://github.com/stevan/BreadBoard/issues
and when you submit a bug or a request, please include a test-file or a patch to an existing test-file that illustrates the bug or the desired feature. like, actually show us, don't just describe the vibe. π
π COPYRIGHT AND LICENSE π
this software is copyright (c) 2019, 2017, 2016, 2015, 2014, 2013, 2011, 2009 by Infinity Interactive.
it's free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. so go forth, remix, slay. π
and that's the whole page, bestie β this was perl v5.36.0, dated 2022-12-12, and the manual name is User Contributed Perl Documentation, in case you were wondering where she came from. mwah, take care of her. ππ¦β¨
π¦ where this page comes from
- debian bookworm: libbread-board-perl 0.37-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libbread-board-perl 0.37-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libbread-board-perl 0.37-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu questing: libbread-board-perl 0.37-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms