Gavin Kistner wrote:
> On Jun 1, 2005, at 3:35 AM, Pe, Botp wrote:
>>   def []= (index, other)
>>       p "You entered #{other} thru index #{index}"
>>       if other.class == Fixnum
>
> As in Robert Klemme's example, you should use Integer and not Fixnum.
> (Integer covers both Fixnum and Bignum).

Plus don't use "other.class == Integer" but "Integer === other" as this
covers sub classes and Integer has no instances.

    robert