Fixnum
The class for fixed-length integers that fit into the machine's pointer, which is usually 31 bits long. If the result of an operation is out of Fixnum range, it is automatically extended into a Bignum.
Superclass
Integer
Methods
id2name
Returns the string corresponding to a Symbol 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.
Last updated