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

Example

                                        

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

Suggest An Answer

No suggestions avaliable!