Универсальные (динамические) типы

d = "some string"
d = d.upcase()
# d is "SOME STRING"
puts "d is #{d}"

d = 3.14
s = d.to_s
puts "s is '#{s}'"