Class | Fixnum |
In: |
lib/backports/1.8.7/fixnum.rb
lib/backports/1.8.7/float.rb |
Parent: | Object |
Standard in ruby 1.8.7+. See official documentation
# File lib/backports/1.8.7/fixnum.rb, line 3 3: def div(n) 4: (self / n).to_i 5: end
Standard in ruby 1.8.7+. See official documentation
# File lib/backports/1.8.7/fixnum.rb, line 8 8: def fdiv(n) 9: to_f / n 10: end