diff options
author | ☈king <parking@sharpsaw.org> | 2013-04-19 19:24:21 -0500 |
---|---|---|
committer | ☈king <parking@sharpsaw.org> | 2013-04-19 19:24:21 -0500 |
commit | c8d1c7adfd566d09caaa6c0cf9a51379b8e7e950 (patch) | |
tree | f2c6b4474253818b97000aed82458f4994c62621 | |
parent | d929345ea52ed553840094238867a193afd258b5 (diff) | |
download | pry-c8d1c7adfd566d09caaa6c0cf9a51379b8e7e950.tar.gz |
Silence deprecation warning on Pry#repl
-rw-r--r-- | lib/pry/pry_instance.rb | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/lib/pry/pry_instance.rb b/lib/pry/pry_instance.rb index 24af019e..f540b06f 100644 --- a/lib/pry/pry_instance.rb +++ b/lib/pry/pry_instance.rb @@ -368,19 +368,10 @@ class Pry end private :handle_line - # @deprecated Use `Pry::REPL.new(pry, :target => target).start` instead. + # Potentially deprecated — Use `Pry::REPL.new(pry, :target => target).start` + # (If nested sessions are going to exist, this method is fine, but a goal is + # to come up with an alternative to nested sessions altogether.) def repl(target = nil) - @@repl_warning ||= (warn Pry::Helpers::CommandHelpers.unindent(<<-S); true) - DEPRECATION: Pry#repl is deprecated. Instead, use - - Pry::REPL.new(pry, :target => target).start - - where pry is the Pry instance you called #repl on and target is the - optional target parameter of #repl. - - Call stack: - #{caller.join("\n" + (' ' * 8))} - S Pry::REPL.new(self, :target => target).start end |