Class: Integer

Inherits:
Numeric show all
Defined in:
lib/laser/standard_library/integer.rb

Direct Known Subclasses

Bignum, Fixnum

Instance Method Summary collapse

Methods inherited from Numeric

#%, #+@, #-@, #<=>, #abs, #abs2, #angle, #arg, #coerce, #conj, #conjugate, #div, #divmod, #eql?, #fdiv, #i, #imag, #imaginary, #magnitude, #modulo, #nonzero?, #phase, #polar, #pretty_print, #pretty_print_cycle, #quo, #real, #real?, #rect, #rectangular, #remainder, #singleton_method_added, #step, #to_c, #zero?

Methods included from Comparable

#<, #<=, #==, #>, #>=, #between?, compare_int

Instance Method Details

#ceilObject

builtin: true pure: true raise: false



5
6
# File 'lib/laser/standard_library/integer.rb', line 5

def ceil
end

#chrObject

builtin: true pure: true raise: false



10
11
# File 'lib/laser/standard_library/integer.rb', line 10

def chr
end

#denominatorObject

builtin: true pure: true raise: false



15
16
# File 'lib/laser/standard_library/integer.rb', line 15

def denominator
end

#downto(int) ⇒ Object

builtin: true pure: true yield_usage: optional



20
21
# File 'lib/laser/standard_library/integer.rb', line 20

def downto(int)
end

#even?Boolean

builtin: true pure: true raise: false

Returns:

  • (Boolean)


25
26
# File 'lib/laser/standard_library/integer.rb', line 25

def even?
end

#floorObject

builtin: true pure: true raise: false



30
31
# File 'lib/laser/standard_library/integer.rb', line 30

def floor
end

#gcd(int) ⇒ Object

builtin: true pure: true



34
35
# File 'lib/laser/standard_library/integer.rb', line 34

def gcd(int)
end

#gcdlcm(int) ⇒ Object

builtin: true pure: true



38
39
# File 'lib/laser/standard_library/integer.rb', line 38

def gcdlcm(int)
end

#integer?Boolean

builtin: true pure: true raise: false

Returns:

  • (Boolean)


43
44
# File 'lib/laser/standard_library/integer.rb', line 43

def integer?
end

#lcm(int) ⇒ Object

builtin: true pure: true



47
48
# File 'lib/laser/standard_library/integer.rb', line 47

def lcm(int)
end

#nextObject

builtin: true pure: true raise: false



52
53
# File 'lib/laser/standard_library/integer.rb', line 52

def next
end

#numeratorObject

builtin: true pure: true raise: false



57
58
# File 'lib/laser/standard_library/integer.rb', line 57

def numerator
end

#odd?Boolean

builtin: true pure: true raise: false

Returns:

  • (Boolean)


62
63
# File 'lib/laser/standard_library/integer.rb', line 62

def odd?
end

#ordObject

builtin: true pure: true raise: false



67
68
# File 'lib/laser/standard_library/integer.rb', line 67

def ord
end

#predObject

builtin: true pure: true raise: false



72
73
# File 'lib/laser/standard_library/integer.rb', line 72

def pred
end

#rationalizeObject

builtin: true pure: true raise: false



77
78
# File 'lib/laser/standard_library/integer.rb', line 77

def rationalize
end

#round(digits = 0) ⇒ Object

builtin: true pure: true



81
82
# File 'lib/laser/standard_library/integer.rb', line 81

def round(digits=0)
end

#succObject

builtin: true pure: true raise: false



86
87
# File 'lib/laser/standard_library/integer.rb', line 86

def succ
end

#timesObject

builtin: true pure: true raise: false yield_usage: optional



92
93
# File 'lib/laser/standard_library/integer.rb', line 92

def times
end

#to_iObject

builtin: true pure: true raise: false



97
98
# File 'lib/laser/standard_library/integer.rb', line 97

def to_i
end

#to_intObject

builtin: true pure: true raise: false



102
103
# File 'lib/laser/standard_library/integer.rb', line 102

def to_int
end

#to_rObject

builtin: true pure: true raise: false



107
108
# File 'lib/laser/standard_library/integer.rb', line 107

def to_r
end

#truncateObject

builtin: true pure: true raise: false



112
113
# File 'lib/laser/standard_library/integer.rb', line 112

def truncate
end

#upto(max) ⇒ Object

builtin: true pure: true raise: false yield_usage: optional



118
119
# File 'lib/laser/standard_library/integer.rb', line 118

def upto(max)
end