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. |
Cheatography
https://cheatography.com
Ruby - Strings - Cheat Sheet (DRAFT) by GabrielCabrera
ruby string methods examples
This is a draft cheat sheet. It is a work in progress and is not finished yet.