TIL: Anonymous module support in Ruby
Dec 20, 2022
Today I Learned: Ruby supports anonymous Modules, just as it supports anonymous Classes.
While looking into customizing the returned response from Doorkeepers TokenController
I found that Ruby supports anonymous modules. Which is quite handy for duck typing in Ruby.
Here is a quick example of how it works: