dry-rb / dry-container

A simple, configurable object container implemented in Ruby
https://dry-rb.org/gems/dry-container
MIT License
335 stars 41 forks source link

Support object instance as a decorator #59

Closed WojciechKo closed 5 years ago

WojciechKo commented 5 years ago

Since Discourse seems to be a abandoned, here is a proposal.

Release 0.7 allows to provide a decorator, but it works only if you pass a Class object. When you pass an instance it overrides the original value. What do you think about supporting instance as a decorator and pass object being decorated to the call method of the decorator?

flash-gordon commented 5 years ago

thank you

solnic commented 5 years ago

Since Discourse seems to be a abandoned, here is a proposal.

I'm sorry you felt that way. We try to reply to people as fast as we can, it's hard to keep up with chats, forums, PRs, issues, comments etc. 😄