Dry-initializer type constraint


#1

I’m trying out dry-initializer and I want to add a type constraint to one of my options that says that the option inherits from a parent class. How would I go about this?


#2

I did a little more experimenting and realized the option I’m trying to constrain is getting a class. So, a type constraint is not exactly what I want. What I want is an ancestor constraint. I’m expecting it to be something that subclasses Dry::System::Container. Is there a way to do this with dry-initializer and dry-types?