Class: Mutant::Timer::Deadline::Status Private

Inherits:
Object
  • Object
show all
Defined in:
lib/mutant/timer.rb

Overview

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Deadline status snapshot

Instance Method Summary collapse

Instance Method Details

#ok?Boolean

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Test if deadline is not yet expired

Returns:

  • (Boolean)


34
35
36
# File 'lib/mutant/timer.rb', line 34

def ok?
  time_left.nil? || time_left.positive?
end