From 657ae09c6a27e243a66fc84680f8324563b97927 Mon Sep 17 00:00:00 2001 From: John Mair Date: Tue, 31 May 2011 00:06:55 +1200 Subject: [PATCH] added CommandSet#list_commands, convenience method for repl exploration of command sets --- lib/pry/command_set.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/pry/command_set.rb b/lib/pry/command_set.rb index 11cc95b3..65101c5a 100644 --- a/lib/pry/command_set.rb +++ b/lib/pry/command_set.rb @@ -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