yyyc514 / lookup forked from radar/lookup
- Source
- Commits
- Network (1)
- Issues (0)
- Downloads (0)
- Wiki (1)
- Graphs
-
Branch:
master
Josh Goebel (author)
Mon Mar 30 07:14:53 -0700 2009
lookup /
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Sat Feb 07 06:06:51 -0800 2009 | |
| |
LICENSE | Mon Mar 30 02:58:21 -0700 2009 | |
| |
README.md | ||
| |
Rakefile | ||
| |
TODO | Fri Jan 23 08:14:08 -0800 2009 | |
| |
bin/ | ||
| |
install.rb | Fri Jan 23 08:14:08 -0800 2009 | |
| |
lib/ | ||
| |
lookup.gemspec | ||
| |
spec/ |
README.md
Lazy Man's ri (lookup)
Example usage:
lookup ActiveRecord::Base#new(returns a single method, since the method name is right)lookup ActiveRecord::Base#destroy(returns two methods, since there's two methods with that name)lookup ActiveRecord::Base#destro(returns three methods, uses methods beginning with "destroy")lookup ActiveRecord::Base#d(tells you to be more specific, because it can't open 35 tabs at once)lookup ActiveRecord::Base(returns a single consant)lookup Acv::Base(returns six constants, because it does a fuzzy match)
Options
It also takes options:
-c or --clearwill delete the database and update the api again. This can take a minute or two.-t or --textis useful for when you don't want lookup to spam tabs into your browser willy-nilly.
How it finds them
- Checks if there's constants/methods with that exact name.
- Checks if there's constants/methods with names beginning with that name.
- Does a "fuzzy match" splitting the name and getting anything containing those letters in that order.
- Opens your browser if you're running a DECENT_OPERATING_SYSTEM (may add support for things other than Mac later on)
- ???
- Profit

