From 5c964f0ed64aec4969e66a7a1dd34453ae93cbf6 Mon Sep 17 00:00:00 2001 From: John Mair Date: Thu, 5 May 2011 00:56:32 +1200 Subject: [PATCH] silencing warnings from reloading files after edit-method command finishes --- lib/pry/default_commands/introspection.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/pry/default_commands/introspection.rb b/lib/pry/default_commands/introspection.rb index bbb2a0a4..23328b56 100644 --- a/lib/pry/default_commands/introspection.rb +++ b/lib/pry/default_commands/introspection.rb @@ -157,7 +157,9 @@ e.g: edit-method hello_method end run ".#{editor_invocation}" - load file if !opts["no-reload"] + silence_warnings do + load file if !opts["no-reload"] + end end end