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_ |
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_ |
As int is already an Integer, all these methods simply return the receiver. |
| to_ |
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. |
<code/>and<pre/>for code samples.