Sha256: 90f325ecc4211b333bb1af67a4a31bccf7ba37c40e9eb8d370c0aee1a9a32f4a

Contents?: true

Size: 173 Bytes

Versions: 2

Compression:

Stored size: 173 Bytes

Contents

class Clock
  @@time = Time.now
  cattr_writer :time

  def self.now
    @@time.utc
  end

  def self.advance_by_days( days )
    @@time += (days * 60 *60 * 24)
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
backlog-0.37.2 test/mocks/test/clock.rb
backlog-0.37.1 test/mocks/test/clock.rb