Hi,

At Sat, 22 Mar 2008 07:33:56 +0900,
Roger Pack wrote in [ruby-talk:295325]:
> # a class to match
> 
> class Number
>  def Number.matches? param
>    return true if param.class == Fixnum or param.class == Float or 
> param.class == BigDecimal
>  end
> end

Numeric === obj

-- 
Nobu Nakada