Inspired by the Perl programming language you can use the percentage notation in Ruby to generate quoted strings and other expressions. This can be an easier way to define strings, arrays, and symbols. The notation begins with a % sign and a unique character followed by a delimiter. A delimiter…