added CommandSet#list_commands, convenience method for repl exploration of command sets

This commit is contained in:
John Mair 2011-05-31 00:06:55 +12:00
parent 329983354c
commit 657ae09c6a
1 changed files with 5 additions and 0 deletions

View File

@ -216,6 +216,11 @@ class Pry
end end
# @return [Array] The list of commands provided by the command set.
def list_commands
commands.keys
end
private private
def define_default_commands def define_default_commands