stuarteaston said over 4 years ago on SOLID - Open/Closed Principle :
Not tried this myself but I think you need to remove the quotes DocxDocumentParser so you don't pass in a string. You should pass in a class so that the initialize method on Document can call #new on it.