Peter Lynch wrote:
> I would like to know if a function has been called with or without an
> optional argument.

def foo( a, b=nil )
  if b.nil?
    # whoa
    b=''
  end
  # ...
end