Below is an example of named arguments in Ruby, but what does the ampersand do?
def set_tools(foo:, bar:, baz:)
@instance_variable = baz&.stuff
Below is an example of named arguments in Ruby, but what does the ampersand do?
def set_tools(foo:, bar:, baz:)
@instance_variable = baz&.stuff