...

/

Listing and Chaining Methods

Listing and Chaining Methods

Learn how to find the methods defined for an object and how to call multiple methods on a single line of code.

Listing methods

As mentioned before, if you’re curious what methods are defined on a certain object, then you can check the Ruby documentation for the class. Usually, the right page conveniently shows up at the top when you search for “ruby” and the class name.

However, we can also quickly ask the object for its methods. That’s right, ...