String interpolation
suggest changeDouble quotes and %Q interpolate #{ruby_expression}. The time below is an example. Yours will differ.
puts "Now is #{Time.now}"
# Now is 2016-07-21 12:47:45 +0200
puts %Q(Now is #{Time.now})
# Now is 2016-07-21 12:47:45 +0200
Found a mistake? Have a question or improvement idea?
Let me know.
Table Of Contents