Class: Time::Limit::Dummy

Inherits:
Time::Limit show all
Defined in:
lib/carat/timelimit.rb

Overview

Dummy Time Limit

Instance Attribute Summary

Attributes inherited from Time::Limit

#sec

Instance Method Summary collapse

Methods inherited from Time::Limit

#initialize, #on_timeout, #reset

Constructor Details

This class inherits a constructor from Time::Limit

Instance Method Details

#startObject



98
99
100
101
102
103
104
# File 'lib/carat/timelimit.rb', line 98

def start
  if iterator? then
    yield
  else
    sec()
  end
end

#stopObject



106
107
108
# File 'lib/carat/timelimit.rb', line 106

def stop
  false
end