Lots of Other Methods
Learn how to look up lots of useful methods that we can use in our everyday Ruby code.
Names of methods reflect their behavior
If we look at the methods defined on strings, arrays, or hashes (run [].methods.sort
or {}.methods.sort
), then we’ll find many method names that look like they’re doing exactly what their names describe.
For example, some of the things we can do with strings are:
-
"a
...