Pattern Matching on Ruby Objects
I wrote https://fly.io/ruby-dispatch/pattern-matching-on-ruby-objects/ to show people how they can implement pattern matching in their Ruby objects that with with case ... in
statements. Use it in your very own HTTP routers, Rack middleware, Rails apps, authorization objects (like Pundit), consume APIs, or parse files!
Post a comment