mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
issue 998
This commit is contained in:
parent
e2f9e1e6e8
commit
f1e07ce255
2 changed files with 2 additions and 1 deletions
1
Gemfile
1
Gemfile
|
@ -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'
|
||||
|
|
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue