Sha256: 9194447b9a48f665fb7727a0ecec89935796e9885d2c36ac3ec1f8cb18e228ff
Contents?: true
Size: 247 Bytes
Versions: 3
Compression:
Stored size: 247 Bytes
Contents
# frozen_string_literal: true RubyNext::Core.patch Time, method: :ceil, version: "2.7" do <<~'RUBY' def ceil(den = 0) sceil = (subsec * 10**den).ceil.to_r / 10**den change = sceil - subsec self + change end RUBY end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ruby-next-core-0.9.2 | lib/ruby-next/core/time/ceil.rb |
ruby-next-core-0.9.1 | lib/ruby-next/core/time/ceil.rb |
ruby-next-core-0.9.0 | lib/ruby-next/core/time/ceil.rb |