Technical requirements
In this chapter and all chapters of this book, the code provided in code blocks was designed to be executed on Ruby 3.0. Many of the code examples will work on earlier versions of Ruby, but not all of them. The code for this chapter is available online at https://github.com/PacktPublishing/Polished-Ruby-Programming/tree/main/Chapter04.