Sha256: 75457efe6b069486c7c8fc60fe28a83a3c919a05c38a9807df9a6456979b7708
Contents?: true
Size: 185 Bytes
Versions: 1
Compression:
Stored size: 185 Bytes
Contents
class Integer def ceil(offset) ((self + offset) * Rational(1, offset)).ceil * offset - offset end def floor(offset) (self * Rational(1, offset)).floor * offset end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
gyomu_ruby-0.0.4 | lib/gyomu_ruby/core_ext/integer/round.rb |