mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
solved issue 998
This commit is contained in:
parent
35a4b44b40
commit
e2f9e1e6e8
1 changed files with 3 additions and 0 deletions
|
@ -50,6 +50,9 @@ class Pry
|
|||
elsif name.to_s =~ /(.+)(\.|::)(\S+)\Z/
|
||||
context, meth_name = $1, $3
|
||||
from_obj(target.eval(context), meth_name, target)
|
||||
elsif name.to_s =~ /(\w+)(\[\])/
|
||||
context, meth_name = $1, $2
|
||||
from_obj(target.eval(context), meth_name, target)
|
||||
elsif options[:instance]
|
||||
from_module(target.eval("self"), name, target)
|
||||
elsif options[:methods]
|
||||
|
|
Loading…
Reference in a new issue