Class

Integer

Extends:

Includes:

Integer is the basis for the two concrete classes that hold whole numbers, Bignum and Fixnum.

Public Methods
ceil As int is already an Integer, all these methods simply return the receiver.
chr Returns a string containing the ASCII character represented by the receiver’s value.
downto Iterates block, passing decreasing values from int down to and including limit.
floor As int is already an Integer, all these methods simply return the receiver.
induced_from Convert obj to an Integer.
integer? Always returns true.
next Returns the Integer equal to int + 1.
round As int is already an Integer, all these methods simply return the receiver.
succ Returns the Integer equal to int + 1.
times Iterates block int times, passing in values from zero to int - 1.
to_i As int is already an Integer, all these methods simply return the receiver.
to_int As int is already an Integer, all these methods simply return the receiver.
truncate As int is already an Integer, all these methods simply return the receiver.
upto Iterates block, passing in integer values from int up to and including limit.
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.