1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Merge pull request #1408 from tdg5/run_command_returns_nil

Return nil from PryClass::run_command
This commit is contained in:
Kyrylo Silin 2015-04-10 06:29:38 +03:00
commit c47d566390

View file

@ -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, # @param [String] command_string The Pry command (including arguments,
# if any). # if any).
# @param [Hash] options Optional named parameters. # @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 # @option options [Object, Binding] :target The object to run the
# command under. Defaults to `TOPLEVEL_BINDING` (main). # command under. Defaults to `TOPLEVEL_BINDING` (main).
# @option options [Boolean] :show_output Whether to show command # @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 = Pry.new(:output => output, :target => target, :commands => options[:commands])
pry.eval command_string pry.eval command_string
nil
end end
def self.default_editor_for_platform def self.default_editor_for_platform