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

issue 998

This commit is contained in:
Deepender 2013-12-10 00:50:29 +05:30
parent e2f9e1e6e8
commit f1e07ce255
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@ group :development do
gem 'jist'
gem 'rb-inotify', :require => 'false'
gem 'rb-fsevent', :require => 'false'
gem 'debugger'
end
if RbConfig::CONFIG['ruby_install_name'] == 'rbx'

View file

@ -50,7 +50,7 @@ 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+)(\[\])/
elsif name.to_s =~ /(.+)(\[\])\Z/
context, meth_name = $1, $2
from_obj(target.eval(context), meth_name, target)
elsif options[:instance]