I noticed something odd when I was working with string interpolation and I arbitrarily decided to use single quotes for my string that had interpolation in it. However, single quotes seem to act weird with string interpolation. For example:
bob = 'bob'
puts 'hello #{bob}'
# The above prints out:
# hello #{bob}
Strangely, though, when I decided to use double quotes instead, the result of the string interpolation was different:
bob = 'bob'
puts "hello #{bob}"
# The above prints out:
# hello bob
So my question is: are double quotes supposed to be different from single quotes in regard to string interpolation, and if so, is there any particular reason why?