Bread:...hClass(3pm)

πŸ“¦
version 0.37 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu questing

🍞 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. 😭

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