Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replacing ordered parameters with named parameters
Given that the first parameter (e.g. `ids`) is an Array, I can see it being rather easy to instead pass `build_presenters('1', '2', '3')` which in turn would mean `ids == '1'`, `klass == '2'`, and `args == '3'` By shifting to named parameters, I hope this clears up the likelihood of that confusion and unexpected behavior.
- Loading branch information
Showing
2 changed files
with
21 additions
and
11 deletions.
There are no files selected for viewing
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
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