1
0
Fork 0
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:
Deepender 2013-12-09 06:52:34 +05:30
parent 35a4b44b40
commit e2f9e1e6e8

View file

@ -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]