D
David Corbin
def foo(*)
end
What does the "*" mean?
end
What does the "*" mean?
Any number of argumentsDavid Corbin said:def foo(*)
end
What does the "*" mean?
def foo(*) end
nil
foo 1
nil
foo
nil
foo 1,2,3
nil
Any number of arguments
David said:And the foo method just can't refer to them?
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.