solved issue 998

This commit is contained in:
Deepender 2013-12-09 06:52:34 +05:30
parent 35a4b44b40
commit e2f9e1e6e8
1 changed files with 3 additions and 0 deletions

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]