mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
b92065d465
First of all, we move the spec file from `spec` to `spec/helpers`. This is where it is supposed to be. Next, we add tests for all the methods that the module defines. During this process I had to change `module_function` to `extend self`. Rubocop doesn't like it for some unknown to me reason, so I had to disable the rule. There's no harm in doing so. Finally, I refactored some methods (low-hanging fruits only) and discovered that the `command_error` method is not necessary at all. All in all, this module is a lot better now but I feel like it shouldn't exist at all, since almost all methods are very specific to certain Pry commands. It's hardly a general purpose module for Pry plugins. |
||
---|---|---|
.. | ||
base_helpers.rb | ||
command_helpers.rb | ||
documentation_helpers.rb | ||
options_helpers.rb | ||
platform.rb | ||
table.rb | ||
text.rb |