Ruby 2.7 is out with experimental pattern matching support. This demo shows the use of the new pattern matching in extracting data from GitHub Actions YAML files.
Links:
https://www.ruby-lang.org/en/news/201...
https://doc.rust-lang.org/book/ch18-0...
https://docs.microsoft.com/en-us/arch...
https://help.github.com/en/actions/au...
https://rubystyle.guide/
https://speakerdeck.com/k_tsj/pattern...