mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
503e6bb63f
* --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 ? |
||
---|---|---|
.. | ||
commands | ||
fixtures | ||
helpers | ||
cli_spec.rb | ||
code_object_spec.rb | ||
code_spec.rb | ||
command_helpers_spec.rb | ||
command_integration_spec.rb | ||
command_set_spec.rb | ||
command_spec.rb | ||
completion_spec.rb | ||
control_d_handler_spec.rb | ||
exception_whitelist_spec.rb | ||
helper.rb | ||
history_array_spec.rb | ||
hooks_spec.rb | ||
indent_spec.rb | ||
input_stack_spec.rb | ||
method_spec.rb | ||
prompt_spec.rb | ||
pry_defaults_spec.rb | ||
pry_history_spec.rb | ||
pry_output_spec.rb | ||
pry_spec.rb | ||
sticky_locals_spec.rb | ||
syntax_checking_spec.rb | ||
wrapped_module_spec.rb |