One of the best parts of learning to program in Ruby is that it is an Object-Oriented language. This means that…