Say I have a method that needs three arguments:
def foo(a, b, c)
end
And I have said arguments in an array:
[a, b, c]
Is there a trivial or one method way of using the array as the arguments, like:
foo(array.some_method)
You can use the splat operator:
foo(*array)
foo methodDate.valid_date?(*'9666-96-96'.split('-').map(&:to_i)). I probably should make it into two steps.