Project

dot-what

0.0
No commit activity in last 3 years
No release in over 3 years
Show ruby available methods on objects and classes
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 3.14
~> 4.0
 Project Readme

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