I’m writing a simple little search tree implementation. I provide bare-bones implementations of, say, how to deal with logical-AND, but I’d like knowledgable users to be able to override it.
SO…is there a way to set up default values for DI? I want the gem to be useful out-of-the-box, but also configurable if that’s your thing.
Ideally, a call to MyClass.new
would work without any setup by the end-user at all.
My guess is either this is easy and I just can’t see it, or this isn’t a good way to do it and I don’t understand why.