Michael W. Ryder wrote:

> [...] That worked except for a minor problem.  I first tried a.class == 
> Integer and it failed.  I had to use Fixnum to get it to work.  I 
> thought that Integer being the super class for Fixnum and Bignum I could 
> just test for Integer without having to test for both of the subclasses. 
>  Is there any way to do this?
> 

a.is_a? Integer


> I didn't think it would be that easy, but I guess it was.

Principle of Least Surprise :-)
If it looks legit, it probably is and behaves as most people would expect.

Lionel