From: Robert Klemme Date: 2004-11-05T22:43:43+09:00 Subject: Re: value provided for argument with default value - how to check inside method? "itsme213" schrieb im Newsbeitrag news:mXCid.17442$tL5.16841@fe2.texas.rr.com... > Is there an equivalent of block_given? to check if the caller provided a > value to an argument that had a default value? > > Or do I have to use some sentinel value? I'm unsure what you're at. Normally the idea of having a default value is that you don't have to worry about where it came from: def foo(x=10) puts x end Care to unveil a bit more detail why you would need that piece of information? Kind regards robert