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
bang_spec.rb
cat_spec.rb
cd_spec.rb
disable_pry_spec.rb
edit_spec.rb edit command: add --method option 2013-01-11 20:47:46 +01:00
exit_all_spec.rb
exit_program_spec.rb
exit_spec.rb
find_method_spec.rb
gem_list_spec.rb
gist_spec.rb
help_spec.rb
hist_spec.rb
jump_to_spec.rb
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
save_file_spec.rb
show_doc_spec.rb
show_input_spec.rb
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