To add a collaborator to this project you will need to use the Relish gem to add the collaborator via a terminal command. Soon you'll be able to also add collaborators here!
More about adding a collaboratorExtract Constant :RExtractConstant
Extracts the selected range into a constant at the top of the current module/class
Shortcuts:
:RExtractConstant
- Scenarios
-
- Extract a constant
-
- Given
-
I have the following code:
class Foo def bar "some magic number" end end
- When
-
I select "some magic number" and execute:
:RExtractConstant
- And
- I fill in the parameter "magic_string"
- Then
-
I should see:
class Foo MAGIC_STRING = "some magic number" def bar MAGIC_STRING end end
Last published almost 7 years ago by despo.