From: Mark Wilden Date: 2008-05-29T02:57:52+09:00 Subject: Re: The duck's backside On May 28, 2008, at 8:24 AM, Eleanor McHugh wrote: > doit a, b, c = nil > raise ArgumentError, "needs exactly one additional argument" if b > && c > v = b || c > raise ArgumentError, "need a numeric parameter" unless > v.respond_to?(:to_int) > @post "first=#{a}&" + (b.nil? ? "second=ignored&third=#{v}" : > "second=#{v}&third=ignored") > end This looks like a great solution! But if you want to check for numeric parameters, would it be better just to use Numeric === v ? I know this isn't the ducky way, but it certainly seems more "intentional." ///ark