mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
272b3290b5
eval('[__FILE__, __LINE__]') will not work in future Ruby. Let's stop using it when Binding#source_location is available because it prints noisy warnings. Since Binding#source_location is added in Ruby 2.6 https://github.com/ruby/ruby/commit/571e48b7442, this commit is leaving old code with branching by binding.respond_to?(:source_location). Fixes #1871 |
||
---|---|---|
.. | ||
pry | ||
pry.rb |