What do you get if u invoke a method with the wrong number of arguments ??
It throws in ur face ArgumentError … it doesn’t try to be polite, you
are at fault since you are the one that breaches the contract !!
1 2 3 4 5 6 | |
It tells you that it is expecting 0 argument, yet you have passed it
1 argument. Let’s have another one:
1 2 3 4 5 6 7 | |
Pretty readable rite ?