Skip to content

Commit

Permalink
Merge pull request #1408 from tdg5/run_command_returns_nil
Browse files Browse the repository at this point in the history
Return nil from PryClass::run_command
  • Loading branch information
kyrylo committed Apr 10, 2015
2 parents c3e671e + c6ceb40 commit c47d566
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pry/pry_class.rb
Expand Up @@ -232,7 +232,7 @@ def self.initial_session?
# @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
Expand All @@ -257,6 +257,7 @@ def self.run_command(command_string, options={})

pry = Pry.new(:output => output, :target => target, :commands => options[:commands])
pry.eval command_string
nil
end

def self.default_editor_for_platform
Expand Down

0 comments on commit c47d566

Please sign in to comment.