Let\'s say I want a method which will be called like this:
tiger = create_tiger( :num_stripes => 12, :max_speed => 43.2 ) tiger.num_stripes # will be 12
Rails 6 (don't know what version is this available from) has a semantic alias:
def a_method(options={}) options.with_defaults!( a_key: :a_default_value, b_key: :b_default_value, .. ) .. end