nice one. however, I would strongly recommend checking the styling guide for Ruby - github.com/rubocop-hq/ruby-style-g.... In the code example, you are using uppercase letters in naming variables - a practice that is foreign in Ruby.
oh yes I know, I had just made the code with capital letters to better find me. 😁
We're a place where coders share, stay up-to-date and grow their careers.
We strive for transparency and don't collect excess data.