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

7 commits

Author SHA1 Message Date
John Mair
9cc95f9ec9 Try to simplify edit.rb
* Remove ContextLocator, inlining the class in edit.rb instead.
* Pass explicit parameters into MethodPatcher and ExceptionPatcher, rather than passing 'self'
  and using def_delegators

Hopefully this won't upset codeclimate too much!
2013-01-09 17:26:19 +01:00
John Mair
ef8b71a09c MethodPatcher#with_method_transactions: alias --> alias_method 2013-01-02 17:52:37 +01:00
John Mair
4d384737a7 bunch of random refactorings to different commands 2013-01-02 02:06:51 +01:00
John Mair
68758e49ab be brave, fully remove the 'edit-method' command
All functionality has been successfully moved to 'edit' command, with all tests passing.
2013-01-01 01:25:43 +01:00
John Mair
03d3d99211 edit command: extracted out ContextLocator class 2012-12-31 21:52:06 +01:00
John Mair
1a6077a0f9 edit command: extract out ExceptionPatcher, and clean up some code 2012-12-31 19:13:25 +01:00
John Mair
4cfb0dccae Merge remaining edit-method functionality into edit
edit now accepts the -p (runtime patch) switch, and can patch methods.
Coming soon: patching of classes and commands.

edit-method command has been left in codebase until 100% sure 'edit' is a full replacement.
2012-12-31 05:18:30 +01:00