DEV Community


Discussion on: Improving callable service objects with private constructors in Ruby

thorstenhirsch profile image
Thorsten Hirsch • Edited

That's a very interesting pattern. Do you also have a CallableSingleton module? Please share more of your Ruby conventions.

klappradla profile image
Max Author

Glad it's helpful for you!

I don't remember seeing a CallableSingleton module... 🤔

On the topic of more Ruby stories: I just published another small post about prepending modules 👇