fixed CommandContext#run for ALL commands, including regex. Using CommandProcessor approach

This commit is contained in:
John Mair 2011-05-30 03:36:31 +12:00
parent 1519b8e403
commit 62f0b95812
1 changed files with 3 additions and 2 deletions

View File

@ -11,8 +11,9 @@ class Pry
attr_accessor :command_set
attr_accessor :command_processor
def run(name, *args)
command_set.run_command(self, name, *args)
def run(command_string, *args)
complete_string = "#{command_string} #{args.join(" ")}"
command_processor.process_commands(complete_string, eval_string, target)
end
def commands