Next-gen ruby libs! » github.com/dry-rb » website: https://dry-rb.org » forum: https://discourse.dry-rb.org
Dry::Container::Mixin
that once you’ve extend
-ed it in a class, any of that class’ subclasses share the same container storage?
MyApp::Container < Rodakase::Container
class, which is top-level, and a Main::Container < Rodakase::Container
class, which is in a “sub-app”, how they actually ended up having access to all of the container registrations across the codebase. This appears to be why :)
extend
, the container is “static,” at the class-level, meaning it should be the same for any subclasses.