-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
24 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
# 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) | ||
|
||
|
||
|
||
## How it finds them | ||
1. Checks if there's constants/methods with that exact name. | ||
2. Checks if there's constants/methods with names beginning with that name. | ||
3. Does a "fuzzy match" splitting the name and getting anything containing those letters in that order. | ||
4. Opens your browser if you're running a DECENT_OPERATING_SYSTEM (may add support for things other than Mac later on) | ||
5. ??? | ||
6. Profit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters