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
1 changed files with 2 additions and 1 deletions

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,
# 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