String interpolation

suggest change

Double 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

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:



Table Of Contents