Sha256: fc9a45bfaa61b6b9d694173128d7384addbf33fa78686c178d551f578f9cad7d
Contents?: true
Size: 323 Bytes
Versions: 3
Compression:
Stored size: 323 Bytes
Contents
# encoding: utf-8 # Extend Time with methods to find the previous Time class Time unless method_defined?(:pred) # Decrement the Time by one second # # @example # previous_second = time.pred # # @return [Time] # # @api public def pred self - 1 end end end # class Time
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
axiom-0.2.0 | lib/axiom/core_ext/time.rb |
axiom-0.1.1 | lib/axiom/core_ext/time.rb |
axiom-0.1.0 | lib/axiom/core_ext/time.rb |