Ruby: Interpolation

Another way of calling a variable is through interpolation.Interpolation allows us to refer to our variable again by placing it between#{}:

hackrspets = ["Precious", "Lindy", "Arctica"]
puts "I have owned three pets in my life: #{pets}"

=> "I have owned three pets in my life: ["Precious", "Lindy", "Arctica"]"