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

3 commits

Author SHA1 Message Date
John Mair
f1654d8603 Allow 'edit self' and 'reload-code self'
This didn't work due to a quirk in Pry::CodeObject.lookup() which purposely ignores 'expressions'
as they can be methods, which are dangerous to lookup. We now make an exception when the expression is 'self'

This code needs to be refactored as we have ridiculosu method names like  `def variable_or_constant_or_self?`
and we have methods like this in a couple of places. Refactor pls.
2013-01-05 21:17:07 +01:00
John Mair
6254b8a0a0 reload-code: use obj_name (rather than code_object) in output strings 2013-01-05 20:37:37 +01:00
John Mair
38e49b16d3 renamed reload-method to reload-code and extended functionality
Should now be able to reload any valid code object, including: methods, modules, commands, procs, etc
2013-01-05 20:33:27 +01:00