String.+
Signature
string + other_string #=> new_string
string.+ returns a new string that is composed of string concatenated with other_string.
Examples
"foo" + "bar" #=> "foobar"
"foo".+("bar") #=> "foobar"
x = 'foo'
y = 'bar'
z = 'baz'
x + ' ' + z + ' ' + y #=> "foo baz bar"
Documentation Reference
- Log in to post comments
