Check out example codes for "string interpolation ruby". It will help you in understanding the concepts better.

Code Example 1

# to interpolate strings in ruby use #{}

name = "Edmond"
puts "Hello, #{name}!" # outputs "Hello, Edmond!"

Learn ReactJs, React Native from akashmittal.com