Skip to content

larsch/dot-what

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dot-what

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).

Synopsis

List available methods

c:\> irb
irb(main):001:0> require 'what'
=> true
irb(main):002:0> String.what?

string-what

Show source location and documentation (if found)

irb(main):001:0> require 'time'
=> true
irb(main):002:0> Time.what?

time-what

Show instance methods

irb(main):001:0> require 'time'
=> true
irb(main):002:0> Time.instance_what?

time-instance-what

Show only a single method

irb(main):001:0> Time.what?(:iso8601)

time-instance-what

Installation

gem install dot-what

About

Show ruby available methods on objects and classes

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages