-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
1 addition
and
1,188 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,56 +1 @@ | ||
# Ruby On Rails Refactor package | ||
|
||
A set of refactoring tools for Ruby On Rails. It should ease your life. | ||
|
||
[](https://travis-ci.org/zedtux/ror-refactor) | ||
|
||
## 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: | ||
|
||
```bash | ||
$ 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 | ||
|
||
1. Fork it | ||
2. Create your feature branch (`git checkout -b my-new-feature`) | ||
3. Commit your changes (`git commit -am 'Add some feature'`) | ||
4. Push to the branch (`git push origin my-new-feature`) | ||
5. Create new Pull Request | ||
# [This repository has migrated to GitLab.](https://gitlab.com/zedtux/ror-refactor) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.