mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Silence deprecation warning on Pry#repl
This commit is contained in:
parent
d929345ea5
commit
c8d1c7adfd
1 changed files with 3 additions and 12 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue