dry-rb / dry-types

Flexible type system for Ruby with coercions and constraints
https://dry-rb.org/gems/dry-types
MIT License
861 stars 134 forks source link

Factor out common composition logic #447

Closed robhanlon22 closed 2 years ago

robhanlon22 commented 2 years ago

As a follow-on to #445 and #446, extract common composed types out to a Composition module, and extract their common Printer visitors to an inner CompositionPrinter class.