From 62fb94b40663cd4393daac12b3be9c547bf72dc1 Mon Sep 17 00:00:00 2001 From: Andrew Luchuk Date: Fri, 26 Sep 2025 23:02:15 -0400 Subject: [PATCH] Add mixin module with dependencies method --- lib/laradi.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/laradi.rb b/lib/laradi.rb index 1e1a0ee..805964b 100644 --- a/lib/laradi.rb +++ b/lib/laradi.rb @@ -15,6 +15,12 @@ module Laradi LaradiInject = Dry::AutoInject(container) end - + module Mixin + def dependencies(*deps) + deps.each { |dep| + include LaradiInject[dep] + } + end + end end