mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Pry::CodeObject: binding_lookup --> empty_lookup
This commit is contained in:
parent
439c5c6811
commit
0608c0effa
1 changed files with 3 additions and 4 deletions
|
@ -27,7 +27,7 @@ class Pry
|
||||||
co = new(str, target, _pry_, options)
|
co = new(str, target, _pry_, options)
|
||||||
|
|
||||||
co.default_lookup || co.method_or_class_lookup ||
|
co.default_lookup || co.method_or_class_lookup ||
|
||||||
co.command_lookup || co.binding_lookup
|
co.command_lookup || co.empty_lookup
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ class Pry
|
||||||
|
|
||||||
def initialize(str, target, _pry_, options={})
|
def initialize(str, target, _pry_, options={})
|
||||||
options = {
|
options = {
|
||||||
:super => 0
|
:super => 0,
|
||||||
}.merge!(options)
|
}.merge!(options)
|
||||||
|
|
||||||
@str = str
|
@str = str
|
||||||
|
@ -53,8 +53,7 @@ class Pry
|
||||||
pry.commands.find_command_by_match_or_listing(str) rescue nil
|
pry.commands.find_command_by_match_or_listing(str) rescue nil
|
||||||
end
|
end
|
||||||
|
|
||||||
# extract the object from the binding
|
def empty_lookup
|
||||||
def binding_lookup
|
|
||||||
return nil if str && !str.empty?
|
return nil if str && !str.empty?
|
||||||
|
|
||||||
if internal_binding?(target)
|
if internal_binding?(target)
|
||||||
|
|
Loading…
Reference in a new issue