Ruby's Switch Statement is More Flexible Than You Thought
Back in 2012 when I hadn’t discovered Ruby yet I was already basically trying to make the languages I did know work like Ruby.
Ruby's switch statement is very versatile and flexible, especially due to the dynamic nature of Ruby. In this post, we'll see how you can use it in various ways. We'll also learn why it works the way it works. Hint: it uses the `===` operator (method) under the hood.
www.writesoftwarewell.com/ruby-switch-statement/