1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
Commit graph

3 commits

Author SHA1 Message Date
Kyrylo Silin
905bab4d7c Add support of aliases for Method
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>
2012-08-26 00:02:39 +03:00
Ryan Fitzgerald
1af4207c63 Restore groups, convert most commands to class syntax 2012-08-11 18:27:26 -07:00
Ryan Fitzgerald
8ce49ee081 Remove extended_commands, default_commands -> commands 2012-08-11 17:39:25 -07:00
Renamed from lib/pry/default_commands/stat.rb (Browse further)