P
Peter Lynch
I would like to know if a function has been called with or without an
optional argument.
If I have -
def the_Function (a, b = '')
end
and I invoke it like this -
the_Function('a')
the_Function('a', '')
is there any way for me to tell within the_Function which form of
invocation was used?
optional argument.
If I have -
def the_Function (a, b = '')
end
and I invoke it like this -
the_Function('a')
the_Function('a', '')
is there any way for me to tell within the_Function which form of
invocation was used?