RosettaCodeData/Task/String-concatenation/Ruby/string-concatenation.rb

6 lines
92 B
Ruby

s = "hello"
puts s + " literal"
s1 = s + " literal"
puts s1
s1 << " another" # append to s1