Methods

Class/Module Index [+]

Quicksearch

Origami::PDF::JavaScript::AcroTimer

Public Class Methods

new(engine, timeout, code, repeat) click to toggle source
# File lib/origami/javascript.rb, line 181
def initialize(engine, timeout, code, repeat)

  @thr = Thread.start(engine, timeout, code, repeat) do
    loop do
      sleep(timeout / 1000.0)
      engine.exec(code)
      break if not repeat
    end
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.