str * integer → new_str
Copy — Returns a new String containing integer copies of the receiver. integer must be greater than or equal to 0.
str + other_str → new_str
Concatenation—Returns a new String containing other_str concatenated to str.
str << obj → str / str << integer → str
Appends the given object to str. If the object is an Integer, it is considered a codepoint and converted to a character before being appended.
Ruby - Strings - Cheat Sheet (DRAFT) by GabrielCabrera
ruby string methods examples