Show available Ruby methods on objects and classes.
Listed methods are grouped by where they are defined. Singleton methods are shown first, followed by class methods, then base classes, and included modules.
Source location is shown (if available), and documentation is automatically extracted and shown.
Output information in full color to a color-capabable pager. On Windows, less from your Git installation will work.
Mostly useful in interactive Ruby sessions (irb).
c:\> irb
irb(main):001:0> require 'what'
=> true
irb(main):002:0> String.what?
irb(main):001:0> require 'time'
=> true
irb(main):002:0> Time.what?
irb(main):001:0> require 'time'
=> true
irb(main):002:0> Time.instance_what?
irb(main):001:0> Time.what?(:iso8601)
gem install dot-what