diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2020-03-20 19:22:14 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-20 19:22:14 +0800 |
commit | 68ee107c58d3f65575a1a1fa26c014b16286b888 (patch) | |
tree | 07afaaa6556aee495a778286f4cecbf11f2dc07a | |
parent | 6462ae85ea2842fe31ec28ff223ce4c848e31f65 (diff) | |
parent | c6b014839aaee608ea44617720247de752e968a4 (diff) | |
download | pry-68ee107c58d3f65575a1a1fa26c014b16286b888.tar.gz |
Merge pull request #2111 from pry/file-and-line-locator-refactoring
commands/edit/file_and_line_locator: refactor eval expression
-rw-r--r-- | lib/pry/commands/edit/file_and_line_locator.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pry/commands/edit/file_and_line_locator.rb b/lib/pry/commands/edit/file_and_line_locator.rb index e3b8a616..2d0f7713 100644 --- a/lib/pry/commands/edit/file_and_line_locator.rb +++ b/lib/pry/commands/edit/file_and_line_locator.rb @@ -9,7 +9,7 @@ class Pry if target.respond_to?(:source_location) target.source_location else - [target.eval("__FILE__"), target.eval("__LINE__")] + target.eval("[__FILE__, __LINE__]") end end |