For example, this:
my_method(1, 2, three: 3, four: 4)
my_method(1, 2, { three: 3, four: 4 })
def my_method(one, two, opts) three = opts[:three] four = opts[:four] puts one, two, three, four end
For example, this:
Is the same as this: Which can be picked up by the method like this: