Mega Code Archive

 
Categories / Ruby / Language Basics
 

Interpolation

x = 10 y = 20 puts "#{x} + #{y} = #{x + y}" 10 + 20 = 30