Skip to content
instance method

String#+

(::string other_string) -> ::String
self + other_string → new_string

Returns a new string containing other_string concatenated to self:

Example
'Hello from ' + self.to_s # => "Hello from main"

Related: see Converting to New String.

See also #* #+@ #% #-@ also in 4.1 · 3.4 · 3.3 · 3.2 · 3.1 · 3.0