mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
added CommandSet#list_commands, convenience method for repl exploration of command sets
This commit is contained in:
parent
329983354c
commit
657ae09c6a
1 changed files with 5 additions and 0 deletions
|
@ -216,6 +216,11 @@ class Pry
|
|||
end
|
||||
|
||||
|
||||
# @return [Array] The list of commands provided by the command set.
|
||||
def list_commands
|
||||
commands.keys
|
||||
end
|
||||
|
||||
private
|
||||
def define_default_commands
|
||||
|
||||
|
|
Loading…
Reference in a new issue