Ruby On Rails Refactor package
A set of refactoring tools for Ruby On Rails. It should ease your life.
Refactoring tools
This lists the available refactoring tools installed by this package:
- Extract Method (Move a piece of code in a new method)
- Extract Line (Move a piece of code line in a new method)
- Extract Service (Move methods in a new Class)
Installation
You can install it from the console with:
$ apm install ror-refactor
Or from Atom itself.
Usage
Extract Method
Select a bunch of code then hit CTRL + ALT + CMD + R
:
Extract Line
Select a piece of code line then hit CTRL + ALT + CMD + R
:
Extract Service
Select a bunch of methods to move in a new class then hit CTRL + ALT + CMD + R
:
You can specify the following options:
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request