edit command now evals using the file_name, this enables show-method and friends to work on the methods defined in the file. wonderful

This commit is contained in:
John Mair 2011-08-09 18:56:12 +12:00
parent 8082d41e93
commit 55e0b4f763
1 changed files with 1 additions and 1 deletions

View File

@ -154,7 +154,7 @@ class Pry
end
elsif should_reload
silence_warnings do
context.eval(File.read(file_name))
context.eval(File.read(file_name), file_name)
end
end
end