diff options
author | Kyrylo Silin <silin@kyrylo.org> | 2020-03-20 19:15:14 +0800 |
---|---|---|
committer | Kyrylo Silin <silin@kyrylo.org> | 2020-03-20 19:15:14 +0800 |
commit | c6b014839aaee608ea44617720247de752e968a4 (patch) | |
tree | 07afaaa6556aee495a778286f4cecbf11f2dc07a | |
parent | 6462ae85ea2842fe31ec28ff223ce4c848e31f65 (diff) | |
download | pry-c6b014839aaee608ea44617720247de752e968a4.tar.gz |
commands/edit/file_and_line_locator: refactor eval expression
Thanks for the catch:
https://github.com/pry/pry/commit/272b3290b5250d28ee82a5ff65aa3b29b825e37b#commitcomment-36938715
-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 |