scripts icon indicating copy to clipboard operation
scripts copied to clipboard

Change Quick Script Method-Names to "withX"

Open madoar opened this issue 6 years ago • 0 comments

Currently the quick script methods are named like field accessors, e.g. installationCommand, while they are used like fluid API methods that return the quick script object itself. To make this more clear and to clear naming conflicts between the method names and the underlying fields, I propose to rename the methods to a withX, where X is the old method name with the first letter in upper case. installationCommand(command) would then become:

withInstallationCommand(installationCommand) {
   this.installationCommand = installationCommand;
   return this;
}

madoar avatar Jun 22 '19 10:06 madoar