From: aurelianito [mailto:aurelianocalvo / gmail.com] :
# Is there a pure Ruby way to force "hi, #{name}" to evaluate to "hi,
# AURE" (get the uppercase of the original interpolated String).
# Something like:

pols. think simple, then just do it.

interpolation can be any expression..

irb(main):001:0> name="Aure"
=> "Aure"
irb(main):002:0> greeting="hi, #{name}"
=> "hi, Aure"
irb(main):003:0> greeting="hi, #{name.upcase}"
=> "hi, AURE"
irb(main):005:0> greeting="hi, #{"Ms "+name.capitalize}"
=> "hi, Ms Aure"
irb(main):006:0>