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 collaboratorAdd Parameter No Brackets :RAddParameterNB
This refactoring should add a new parameter to a method definition, regardless of how many the method already has.
Shortcuts:
:RAddParameterNB
- Scenarios
-
- Add a parameter to a method defined with no parameters or parentheses
-
- Given
-
I have the following code:
def set_name end
- When
-
I select the method and execute:
:RAddParameterNB
- And
- I fill in the parameter "name"
- Then
-
I should see:
def set_name name end
- Add a parameter to a method with an existing parameter
-
- Given
-
I have the following code:
def set_details name end
- When
-
I select the method and execute:
:RAddParameterNB
- And
- I fill in the parameter "dob"
- Then
-
I should see:
def set_details name, dob end
Last published over 5 years ago by despo.