DEV Community

loading...

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

Collapse
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.

Collapse
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 👇
bitcrowd.dev/prepending-modules-to...