Wrap command descriptions to 80 characters. Convert some string options
to symbols (where possible). Align options in code. Remove dots in the
end of switch descriptions.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
John "banister" Mair describes the following key features of commands
as classes:
1. It enables people to extend them by either subclassing or
monkeypatching.
2. It enables them to provide their own API, so that for example, the
Pry::Command::Edit class could have class methods for people to
configure it.
Please, note that I didn't touch easter eggs commands. I also prettified
some strings (your source code reading experience should vastly improve!).
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
This reverts commits:
905bab4d7cbe626cfada
The problem is that Travis CI does not like tests for some reason.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>
Fix issue #367 (stat command should display the list of aliases for a
given method).
You can get a list of aliases for a method like this:
pry(main)> stat Array#map
Method Information:
--
Name: map
Alias: collect
Owner: Array
Visibility: public
Type: Unbound
Arity: 0
Method Signature: map()
Source Location: Not found.
Note that `Method#aliases` returns an Array of strings on MRI 1.8 and
friends, while on MRI 1.9 it returns an Array of symbols.
Signed-off-by: Kyrylo Silin <kyrylosilin@gmail.com>