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

4 commits

Author SHA1 Message Date
John Mair
e171029de0 Improve Pry::Command::Edit
* put all file and line location logic into FileAndLineLocator module
* pass explicit parameters to ExceptionPatcher and MethodPatcher (rather than just 'self')
2013-01-10 00:07:59 +01:00
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
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