Bread:...ndency(3pm)
π Bread::Board::Dependency β the whole vibe π
okay bestie, so this is Bread::Board::Dependency(3pm), living its best life in the User Contributed Perl Documentation section, and it's genuinely so much cooler than the name makes it sound. sit with me, we're doing this together π«Ά
β¨ NAME β¨
Bread::Board::Dependency β it's a dependency for a service, periodt.
π VERSION π
we're on version 0.37. iconic, ancient, beloved.
πΈ DESCRIPTION πΈ
so basically this class is the little holder-thing that keeps all the info about a dependency of a service. think of it as the notes app entry for "who do I go ask when I need this value". when stuff is resolving dependencies, the code grabs instances of this class and uses them to go access the services that will hand over the depended-on values. that's the whole job. no notes. π
and the way that it can actually find things? it consumes the Bread::Board::Traversable role, which is the fancy way of saying it can retrieve services when you give it their path. path in, service out, slay.
π¦ ATTRIBUTES π¦
service_path
the path you use to go access the service β and yes, it can be possibly relative to the dependency itself. lowkey flexible of it.
service
the actual service this dependency is pointing at. usually it gets built lazily from the service_path, but ngl you can just pass it straight into the constructor if you're feeling direct. main character energy either way.
service_name
the name of the service, and it defaults to the last element of the service_path. so it just... knows. iykyk.
π METHODS π
has_service_path
predicate for the service_path attribute. it's the "do we have one tho" check, and it ate.
get
is_locked
lock
unlock
these four are all delegated to the service. so like, you call them here, they get handed straight over. teamwork fr fr. π₯
π AUTHOR π
Stevan Little <stevan@iinteractive.com> β the author, the legend, the moment.
π BUGS π
found a bug? got a feature request? do not suffer in silence bestie, please report it on the bugtracker website at:
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 desired feature. it's giving "help me help you" and honestly it makes everything so much faster. π
β COPYRIGHT AND LICENSE β
this software is copyright (c) 2019, 2017, 2016, 2015, 2014, 2013, 2011, 2009 by Infinity Interactive.
this is 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 and remix, legally. π
tiny little note: this page is documented for perl v5.36.0 and it's dated 2022-12-12 β that's our footer era, mwah π
and that's the whole page, bestie. no cap, you now know Bread::Board::Dependency better than most people know their own wifi password. go be iconic with it π¦π
β¨
π¦ 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