def m(a, b=:b, c, d, e) e$B$H$7$FDj5A$7$?%a%=%C%I$Ke(B
6e$B$D$N0z?t$rM?$($k$He(B
wrong number of arguments (6 for 2) (ArgumentError)
e$B$H$$$&%(%i!<$K$J$j$^$9!#e(B
e$B$3$l$Ne(B 2e$B$C$F$$$&$N$Oe(B
5e$B$G$"$k$Y$-$h$&$K46$8$k$s$G$9$,$I$&$G$7$ge(B
e$B$&$+!#e(B
% ./ruby -ve ’
def m(a, b=:b, c, d, e)
p [a,b,c,d,e]
end
m(1,2,3,4,5,6)’
ruby 1.9.0 (2007-12-01 patchlevel 0) [i686-linux]
-e:5:in `’: wrong number of arguments (6 for 2) (ArgumentError)