An alternative way for string concatenation.
str1 = "This is a new string"
str2 = ". This is a new sentence."
result = str1 << str2
puts result
Output:
This is a new string. This is a new sentence.
An alternative way for string concatenation.
str1 = "This is a new string"
str2 = ". This is a new sentence."
result = str1 << str2
puts result
Output:
This is a new string. This is a new sentence.