Class: Hackle::FixedClock
- Inherits:
-
Object
- Object
- Hackle::FixedClock
- Includes:
- Clock
- Defined in:
- lib/hackle/internal/clock/clock.rb
Instance Method Summary collapse
- #current_millis ⇒ Object
-
#initialize(time) ⇒ FixedClock
constructor
A new instance of FixedClock.
- #tick ⇒ Object
Constructor Details
#initialize(time) ⇒ FixedClock
Returns a new instance of FixedClock.
35 36 37 |
# File 'lib/hackle/internal/clock/clock.rb', line 35 def initialize(time) @time = time end |
Instance Method Details
#current_millis ⇒ Object
39 40 41 |
# File 'lib/hackle/internal/clock/clock.rb', line 39 def current_millis @time end |
#tick ⇒ Object
43 44 45 |
# File 'lib/hackle/internal/clock/clock.rb', line 43 def tick @time end |