mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Return nil from PryClass::run_command
This commit is contained in:
parent
5eb4e23dd8
commit
c6ceb4078a
1 changed files with 2 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue