From: Phrogz Date: 2007-01-03T01:35:08+09:00 Subject: Re: Detecting default used in method calls 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