Class: Numeric
- Inherits:
-
Object
- Object
- Numeric
- Includes:
- Comparable
- Defined in:
- lib/laser/standard_library/numbers.rb
Instance Method Summary (collapse)
-
- (Object) %(other)
pure: true builtin: true.
-
- (Object) +@
pure: true builtin: true.
-
- (Object) -@
pure: true builtin: true.
-
- (Object) <=>(other)
pure: true builtin: true.
-
- (Object) abs
pure: true builtin: true.
-
- (Object) abs2
pure: true builtin: true.
-
- (Object) angle
pure: true builtin: true.
-
- (Object) arg
pure: true builtin: true.
-
- (Object) ceil
pure: true builtin: true.
-
- (Object) coerce(num)
pure: true builtin: true.
-
- (Object) conj
pure: true builtin: true.
-
- (Object) conjugate
pure: true builtin: true.
-
- (Object) denominator
pure: true builtin: true.
-
- (Object) div(numeric)
pure: true builtin: true.
-
- (Object) divmod(numeric)
pure: true builtin: true.
-
- (Boolean) eql?(numeric)
pure: true builtin: true returns: Boolean.
-
- (Object) fdiv(numeric)
pure: true builtin: true.
-
- (Object) floor
pure: true builtin: true.
-
- (Object) i
pure: true builtin: true.
-
- (Object) imag
pure: true builtin: true.
-
- (Object) imaginary
pure: true builtin: true.
-
- (Boolean) integer?
pure: true builtin: true returns: Boolean.
-
- (Object) magnitude
pure: true builtin: true.
-
- (Object) modulo(numeric)
pure: true builtin: true.
-
- (Boolean) nonzero?
pure: true builtin: true returns: Boolean.
-
- (Object) numerator
pure: true builtin: true.
-
- (Object) phase
pure: true builtin: true.
-
- (Object) polar
pure: true builtin: true.
-
- (Object) pretty_print
pure: true builtin: true.
-
- (Object) pretty_print_cycle
pure: true builtin: true.
-
- (Object) quo(numeric)
pure: true builtin: true.
-
- (Object) real
pure: true builtin: true.
-
- (Boolean) real?
pure: true builtin: true returns: Boolean.
-
- (Object) rect
pure: true builtin: true.
-
- (Object) rectangular
pure: true builtin: true.
-
- (Object) remainder(numeric)
pure: true builtin: true.
-
- (Object) round(numdigits = 0)
pure: true builtin: true.
-
- (Object) singleton_method_added(p1)
pure: true builtin: true raise: always.
-
- (Object) step(limit, step = 1)
pure: true builtin: true yield_usage: optional.
-
- (Object) to_c
pure: true builtin: true.
-
- (Object) to_int
pure: true builtin: true.
-
- (Object) truncate
pure: true builtin: true.
-
- (Boolean) zero?
pure: true builtin: true returns: Boolean.
Methods included from Comparable
#<, #<=, #==, #>, #>=, #between?, compare_int
Instance Method Details
- (Object) %(other)
pure: true builtin: true
5 6 |
# File 'lib/laser/standard_library/numbers.rb', line 5 def %(other) end |
- (Object) +@
pure: true builtin: true
9 10 |
# File 'lib/laser/standard_library/numbers.rb', line 9 def +@ end |
- (Object) -@
pure: true builtin: true
13 14 |
# File 'lib/laser/standard_library/numbers.rb', line 13 def -@ end |
- (Object) <=>(other)
pure: true builtin: true
17 18 |
# File 'lib/laser/standard_library/numbers.rb', line 17 def <=>(other) end |
- (Object) abs
pure: true builtin: true
21 22 |
# File 'lib/laser/standard_library/numbers.rb', line 21 def abs end |
- (Object) abs2
pure: true builtin: true
25 26 |
# File 'lib/laser/standard_library/numbers.rb', line 25 def abs2 end |
- (Object) angle
pure: true builtin: true
33 34 35 |
# File 'lib/laser/standard_library/numbers.rb', line 33 def angle arg end |
- (Object) arg
pure: true builtin: true
29 30 |
# File 'lib/laser/standard_library/numbers.rb', line 29 def arg end |
- (Object) ceil
pure: true builtin: true
38 39 |
# File 'lib/laser/standard_library/numbers.rb', line 38 def ceil end |
- (Object) coerce(num)
pure: true builtin: true
42 43 |
# File 'lib/laser/standard_library/numbers.rb', line 42 def coerce(num) end |
- (Object) conj
pure: true builtin: true
46 47 |
# File 'lib/laser/standard_library/numbers.rb', line 46 def conj end |
- (Object) conjugate
pure: true builtin: true
50 51 52 |
# File 'lib/laser/standard_library/numbers.rb', line 50 def conjugate conj end |
- (Object) denominator
pure: true builtin: true
55 56 |
# File 'lib/laser/standard_library/numbers.rb', line 55 def denominator end |
- (Object) div(numeric)
pure: true builtin: true
59 60 |
# File 'lib/laser/standard_library/numbers.rb', line 59 def div(numeric) end |
- (Object) divmod(numeric)
pure: true builtin: true
63 64 |
# File 'lib/laser/standard_library/numbers.rb', line 63 def divmod(numeric) end |
- (Boolean) eql?(numeric)
pure: true builtin: true returns: Boolean
68 69 |
# File 'lib/laser/standard_library/numbers.rb', line 68 def eql?(numeric) end |
- (Object) fdiv(numeric)
pure: true builtin: true
72 73 |
# File 'lib/laser/standard_library/numbers.rb', line 72 def fdiv(numeric) end |
- (Object) floor
pure: true builtin: true
76 77 |
# File 'lib/laser/standard_library/numbers.rb', line 76 def floor end |
- (Object) i
pure: true builtin: true
80 81 |
# File 'lib/laser/standard_library/numbers.rb', line 80 def i end |
- (Object) imag
pure: true builtin: true
84 85 |
# File 'lib/laser/standard_library/numbers.rb', line 84 def imag end |
- (Object) imaginary
pure: true builtin: true
88 89 |
# File 'lib/laser/standard_library/numbers.rb', line 88 def imaginary end |
- (Boolean) integer?
pure: true builtin: true returns: Boolean
93 94 |
# File 'lib/laser/standard_library/numbers.rb', line 93 def integer? end |
- (Object) magnitude
pure: true builtin: true
97 98 99 |
# File 'lib/laser/standard_library/numbers.rb', line 97 def magnitude abs end |
- (Object) modulo(numeric)
pure: true builtin: true
102 103 |
# File 'lib/laser/standard_library/numbers.rb', line 102 def modulo(numeric) end |
- (Boolean) nonzero?
pure: true builtin: true returns: Boolean
107 108 |
# File 'lib/laser/standard_library/numbers.rb', line 107 def nonzero? end |
- (Object) numerator
pure: true builtin: true
111 112 |
# File 'lib/laser/standard_library/numbers.rb', line 111 def numerator end |
- (Object) phase
pure: true builtin: true
115 116 117 |
# File 'lib/laser/standard_library/numbers.rb', line 115 def phase arg end |
- (Object) polar
pure: true builtin: true
120 121 |
# File 'lib/laser/standard_library/numbers.rb', line 120 def polar end |
- (Object) pretty_print
pure: true builtin: true
124 125 |
# File 'lib/laser/standard_library/numbers.rb', line 124 def pretty_print end |
- (Object) pretty_print_cycle
pure: true builtin: true
128 129 |
# File 'lib/laser/standard_library/numbers.rb', line 128 def pretty_print_cycle end |
- (Object) quo(numeric)
pure: true builtin: true
132 133 |
# File 'lib/laser/standard_library/numbers.rb', line 132 def quo(numeric) end |
- (Object) real
pure: true builtin: true
136 137 |
# File 'lib/laser/standard_library/numbers.rb', line 136 def real end |
- (Boolean) real?
pure: true builtin: true returns: Boolean
141 142 |
# File 'lib/laser/standard_library/numbers.rb', line 141 def real? end |
- (Object) rect
pure: true builtin: true
145 146 |
# File 'lib/laser/standard_library/numbers.rb', line 145 def rect end |
- (Object) rectangular
pure: true builtin: true
149 150 151 |
# File 'lib/laser/standard_library/numbers.rb', line 149 def rectangular rect end |
- (Object) remainder(numeric)
pure: true builtin: true
154 155 |
# File 'lib/laser/standard_library/numbers.rb', line 154 def remainder(numeric) end |
- (Object) round(numdigits = 0)
pure: true builtin: true
158 159 |
# File 'lib/laser/standard_library/numbers.rb', line 158 def round(numdigits=0) end |
- (Object) singleton_method_added(p1)
pure: true builtin: true raise: always
163 164 165 |
# File 'lib/laser/standard_library/numbers.rb', line 163 def singleton_method_added(p1) raise TypeError.new end |
- (Object) step(limit, step = 1)
pure: true builtin: true yield_usage: optional
169 170 |
# File 'lib/laser/standard_library/numbers.rb', line 169 def step(limit, step=1) end |
- (Object) to_c
pure: true builtin: true
173 174 |
# File 'lib/laser/standard_library/numbers.rb', line 173 def to_c end |
- (Object) to_int
pure: true builtin: true
177 178 |
# File 'lib/laser/standard_library/numbers.rb', line 177 def to_int end |
- (Object) truncate
pure: true builtin: true
181 182 |
# File 'lib/laser/standard_library/numbers.rb', line 181 def truncate end |
- (Boolean) zero?
pure: true builtin: true returns: Boolean
186 187 |
# File 'lib/laser/standard_library/numbers.rb', line 186 def zero? end |