Lots of other methods

If you look at the methods that are defined on strings and arrays (e.g. run [].methods.sort or {}.methods.sort in IRB), then you’ll find quite a bunch of method names that look like they are doing exactly what their names describe.

For example, some of the things you can do with strings are:

Some examples for useful methods on arrays are:

How do you find all these methods?

The quickest way to find a certain method for an object often is to just ask Google: “ruby array sort”. That will point you to the Ruby documentation. Another way is to read through all the methods for the class on the respective Ruby documentation page. And of course, you can also read through the method names returned by [1, 2, 3].methods.sort.