What does this mean?


#1

What does this mean in my code and what does it do?

"#{x}\n"

This is the context in which it is used.

multi_d_array.each { |x| puts "#{x}\n" }


#2

#{} is build into ruby, it allows you to display variable inside a string. \n means new line (like hitting the enter key while typing text)