1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/lib/pry/method
Takashi Kokubun 272b3290b5 Fix Ruby 2.6 warning for Binding#source_location
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
2018-12-11 11:10:55 +09:00
..
disowned.rb Fix rubocop empty line after guard clause style violations 2018-10-14 09:44:58 -04:00
patcher.rb rubocop: fix offences regarding spaces 2018-11-04 17:34:24 +08:00
weird_method_locator.rb Fix Ruby 2.6 warning for Binding#source_location 2018-12-11 11:10:55 +09:00