Mega Code Archive
Categories
/
Ruby
/
String
Inserting value of a variable in a string
person = "Matz!" puts "Hello, #{person}" # => Hello, Matz!