Pattern matching syntax was added to Ruby, in experimental form, in version 2.7. This talk will look at what it is, how we can use it, and where it fits in with existing Ruby control flow.
The syntax offers some useful ways to express control flow in places where we might have previously nested if statements or had to destructure data from complex objects.
We will also look at how pattern matching has developed in other languages, and find some good examples of using it in real production code.