1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

Use _pry_ for consistency

This commit is contained in:
Conrad Irwin 2014-04-29 01:04:29 -07:00
parent d220af1061
commit 29544057e7

View file

@ -52,7 +52,7 @@ class Pry
attr_accessor :str
attr_accessor :target
attr_accessor :pry
attr_accessor :_pry_
attr_accessor :super_level
def initialize(str, _pry_, options={})
@ -61,7 +61,7 @@ class Pry
}.merge!(options)
@str = str
@pry = _pry_
@_pry_ = _pry_
@target = _pry_.current_context
@super_level = options[:super]
end
@ -69,7 +69,7 @@ class Pry
def command_lookup
# TODO: just make it so find_command_by_match_or_listing doesn't
# raise?
pry.commands.find_command_by_match_or_listing(str) rescue nil
_pry_.commands.find_command_by_match_or_listing(str) rescue nil
end
# when no paramter is given (i.e CodeObject.lookup(nil)), then we