Mastodon

Ruby Best Practices - Method Arguments

Simple rules for ordering Ruby method arguments — put optional arguments last, and switch to keyword arguments when you have more than one optional parameter.

January 12, 2024