Sha256: 50df3aa3b16c9de1b1e2d2c16654a10fc5cd192e1a4ec5d792378d402023551d
Contents?: true
Size: 352 Bytes
Versions: 4
Compression:
Stored size: 352 Bytes
Contents
class Fixnum # Standard in ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/Fixnum.html] def div(n) (self / n).to_i end unless method_defined? :div # Standard in ruby 1.9. See official documentation[http://ruby-doc.org/core-1.9/classes/Fixnum.html] def fdiv(n) to_f / n end unless method_defined? :fdiv end
Version data entries
4 entries across 4 versions & 2 rubygems
Version | Path |
---|---|
marcandre-backports-1.7.0 | lib/backports/fixnum.rb |
marcandre-backports-1.7.1 | lib/backports/fixnum.rb |
backports-1.7.1 | lib/backports/fixnum.rb |
backports-1.7.0 | lib/backports/fixnum.rb |