Class: Timeout
Instance Method Summary collapse
-
#initialize(time = 0, &block) ⇒ Timeout
constructor
A new instance of Timeout.
Constructor Details
#initialize(time = 0, &block) ⇒ Timeout
Returns a new instance of Timeout.
296 297 298 |
# File 'lib/diamonds/apps/library.rb', line 296 def initialize(time=0, &block) `setTimeout(function(){#{block.call}}, time)` end |