Class: Integer
- Inherits:
-
Numeric
- Object
- Numeric
- Integer
- Includes:
- Integral
- Defined in:
- mrblib/numeric.rb,
src/numeric.c
Overview
15.2.8
Direct Known Subclasses
Instance Method Summary (collapse)
-
- (Object) ceil
Returns the receiver simply.
-
- (Object) floor
(also: #round, #truncate)
Returns the receiver simply.
-
- (Object) to_i
As int is already an Integer, all these methods simply return the receiver.
-
- (Object) to_int
As int is already an Integer, all these methods simply return the receiver.
Methods included from Integral
#downto, #next, #step, #times, #upto
Methods inherited from Numeric
Methods included from Comparable
#<, #<=, #==, #>, #>=, #between?
Instance Method Details
- (Object) ceil
Returns the receiver simply.
ISO 15.2.8.3.14
133 134 135 |
# File 'mrblib/numeric.rb', line 133 def ceil self end |
- (Object) floor Also known as: round, truncate
Returns the receiver simply.
ISO 15.2.8.3.17
141 142 143 |
# File 'mrblib/numeric.rb', line 141 def floor self end |