1
0
Fork 0
mirror of https://github.com/pry/pry.git synced 2022-11-09 12:35:05 -05:00
pry--pry/spec/commands
John Mair 503e6bb63f edit command: add --method option
* --method doesn't accept any parameters, it only edits the 'current' method associated
with the binding. It's equivalent to 'edit-method' (with no args).
* This option is necessary as 'edit' by itself edits the last expression.
* Note that --method doesn't just edit the current method, if no method exists (i.e binding.pry was not put
inside a method context) then it edits the current OBJECT instead.

TODO:
* explicitly restrict --method to *just* methods and not allow it to fall back to objects?
* allow --method to take a parameter that must be a method object? e.g --method Pry#repl works
but --method Pry would fail ?
2013-01-11 20:47:46 +01:00
..
amend_line_spec.rb PryTestHelpers methods are now module_functions, included into Bacon::Context by default 2012-12-07 23:08:49 +01:00
bang_spec.rb PryTestHelpers methods are now module_functions, included into Bacon::Context by default 2012-12-07 23:08:49 +01:00
cat_spec.rb Fix calls to Tempfile.new (GH issue #792) 2013-01-07 15:02:39 -08:00
cd_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
disable_pry_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
edit_spec.rb edit command: add --method option 2013-01-11 20:47:46 +01:00
exit_all_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
exit_program_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
exit_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
find_method_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
gem_list_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
gist_spec.rb Progress on gist + jruby crash 2012-12-09 23:21:18 -06:00
help_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
hist_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
jump_to_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
ls_spec.rb Extract Table to its own file 2013-01-09 17:18:44 -06:00
play_spec.rb Pry::Command::CodeCollector: replace module inclusion with delegation 2013-01-09 01:42:09 +01:00
raise_up_spec.rb Rename for tabcompletion-friendliness. 2012-11-15 18:59:51 -06:00
save_file_spec.rb Reimplemented play, save-file with Pry::Command::CodeCollector 2013-01-09 01:42:08 +01:00
show_doc_spec.rb alliteration 2012-12-27 23:20:41 +01:00
show_input_spec.rb PryTestHelpers methods are now module_functions, included into Bacon::Context by default 2012-12-07 23:08:49 +01:00
show_source_spec.rb Prettify command descriptions, switches and stuff 2013-01-09 22:23:19 +02:00
whereami_spec.rb More lenient assertion for whereami -n 2013-01-08 15:00:10 -06:00