From c6ceb4078ade2b901efc5ea1024abd3ff4e5c9e3 Mon Sep 17 00:00:00 2001 From: Danny Guinther Date: Thu, 2 Apr 2015 08:20:05 -0400 Subject: [PATCH] Return nil from PryClass::run_command --- lib/pry/pry_class.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/pry/pry_class.rb b/lib/pry/pry_class.rb index bc4683ef..e784285e 100644 --- a/lib/pry/pry_class.rb +++ b/lib/pry/pry_class.rb @@ -232,7 +232,7 @@ you can add "Pry.config.windows_console_warning = false" to your .pryrc. # @param [String] command_string The Pry command (including arguments, # if any). # @param [Hash] options Optional named parameters. - # @return [Object] The return value of the Pry command. + # @return [nil] # @option options [Object, Binding] :target The object to run the # command under. Defaults to `TOPLEVEL_BINDING` (main). # @option options [Boolean] :show_output Whether to show command @@ -257,6 +257,7 @@ you can add "Pry.config.windows_console_warning = false" to your .pryrc. pry = Pry.new(:output => output, :target => target, :commands => options[:commands]) pry.eval command_string + nil end def self.default_editor_for_platform