Discovering Ruby object members?

dance2die picture dance2die · Jan 20, 2011 · Viewed 47.5k times · Source

What is an easy way to find out what methods/properties that a ruby object exposes?

As an example to get member information for a string, in PowerShell, you can do

"" | get-member

In Python,

dir("")

Is there such an easy way to discover member information of a Ruby object?