1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00

replaced implementation tests in edit-method with path_line_for

This commit is contained in:
John Mair 2011-06-04 03:09:24 +12:00
parent 166e6e8f0b
commit ffb9670b7f

View file

@ -136,12 +136,7 @@ class Pry
# editor is invoked here
else
if rbx_core?(meth)
file, line = rbx_core_path_line_for(meth)
else
file, line = meth.source_location
end
file, line = path_line_for(meth)
set_file_and_dir_locals(file)
if Pry.editor.respond_to?(:call)