It is a way to build a new string value where the code is wrapped in curly braces and ‘#’ function.

BY Best Interview Question ON 13 Jan 2019

Example

x = "Apocalypse"
y = "X-men #{x}"
IO.puts(y)
x = "Apocalypse"
y = "X-men #{x}"
IO.puts(y)

Suggest An Answer