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 collaborator
Extract Constant :RExtractConstant
Extracts the selected range into a constant at the top of the current module/class
- Extract a constant
I have the following code:
class Foo def bar "some magic number" end end
I select "some magic number" and execute:
- I fill in the parameter "magic_string"
I should see:
class Foo MAGIC_STRING = "some magic number" def bar MAGIC_STRING end end
Last published over 6 years ago by despo.