prev - up - next - index

Integer

The abstract class for integers, which has two subclasses Fixnum and Bignum. In Ruby, both kinds of integers are mixable, and converted automatically according to the value. Integers can be treated as infinite bit strings for bit operations.

SuperClass:

Numeric

Methods:

self[nth]

Returns 1 if nth bit of the integer set, otherwise 0.

chr

Returns the string contains a character represented by that number in the character set. For example, 65.chr returns the string "A".

The number must be within 0 to 255.

integer?

Returns TRUE.

size

Returns the approximate size of the integer in byte.

succ

Returns the ``next'' value of the integer.


prev - up - next - index

matz@caelum.co.jp