In a method definition, when *
is used in the following manner, what does it mean?
def foo(*)
...
end
I understand the foll
In the first case it just allows calling with arbitrary arguments and discards them.
The second case assigns any called arguments to args
It means "take and discard any number of parameters".
Both definitions are technically the same, but not giving a name to the argument array means you can't access it.