Bread:...ndency(3pm)

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

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


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