Fixnum

The class for fixed-length integers that fit into the machine's pointer, which is 31 bits long in most cases. If the result of an operation is out of Fixnum range, it is automatically extended into a Bignum.

Superclass

Methods

id2name

Returns the string corresponding to the Symbol object's integer (obtained with Symbol#to_i). If there is no symbol that corresponds to the integer, returns nil.

to_sym

Returns the Symbol object corresponding to the integer value of the object's self. If there is no symbol that corresponds to the integer, returns nil.