method_source icon indicating copy to clipboard operation
method_source copied to clipboard

Removed file caching to allow live reloading of files

Open crismali opened this issue 11 years ago • 1 comments

This way if you reload a file that defines a proc or a method the source updates. It also prevents SourceNotFound errors in case the proc or method definition moves within the file.

crismali avatar Jan 03 '15 17:01 crismali

I'd be good to have a public API to delete a file from this hash, right now I'm doing this

MethodSource.instance_variable_get(:@lines_for_file).delete(absolute_path)

but it feels kind of weird 🤔, thanks guys.

jairovm avatar Jul 26 '21 23:07 jairovm