Fixes for sample app
The major fix is to make splat parameter returns an empty array instead of nil
when no argument is passed.
def foo(*x)
x
end
# before fix
foo #=> nil
# after fix
foo #=> []
The major fix is to make splat parameter returns an empty array instead of nil
when no argument is passed.
def foo(*x)
x
end
# before fix
foo #=> nil
# after fix
foo #=> []