Sha256: c0180d54af09a23196a371a491877e24589f5678f86b2dbed121982a5f949abd

Contents?: true

Size: 273 Bytes

Versions: 3

Compression:

Stored size: 273 Bytes

Contents

# Extend Time with methods to find the previous Time
class Time

  # Decrement the Time by one second
  #
  # @example
  #   previous_second = time.pred
  #
  # @return [Time]
  #
  # @api public
  def pred
    self - 1
  end unless method_defined? :pred

end # class Time

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
veritas-0.0.3 lib/veritas/core_ext/time.rb
veritas-0.0.2 lib/veritas/core_ext/time.rb
veritas-0.0.1 lib/veritas/core_ext/time.rb