Class: WirisPlugin::TimerProxy
- Inherits:
-
Timer
- Object
- Timer
- WirisPlugin::TimerProxy
- Includes:
- Wiris
- Defined in:
- lib/com/wiris/util/sys/TimerProxy.rb
Instance Attribute Summary collapse
-
#isTimeout ⇒ Object
Returns the value of attribute isTimeout.
-
#timerTask ⇒ Object
Returns the value of attribute timerTask.
Instance Method Summary collapse
-
#initialize(ms, runOnce, task) ⇒ TimerProxy
constructor
A new instance of TimerProxy.
- #run ⇒ Object
Constructor Details
#initialize(ms, runOnce, task) ⇒ TimerProxy
Returns a new instance of TimerProxy.
8 9 10 11 12 |
# File 'lib/com/wiris/util/sys/TimerProxy.rb', line 8 def initialize(ms, runOnce, task) super(ms) @isTimeout = runOnce @timerTask = task end |
Instance Attribute Details
#isTimeout ⇒ Object
Returns the value of attribute isTimeout.
7 8 9 |
# File 'lib/com/wiris/util/sys/TimerProxy.rb', line 7 def isTimeout @isTimeout end |
#timerTask ⇒ Object
Returns the value of attribute timerTask.
6 7 8 |
# File 'lib/com/wiris/util/sys/TimerProxy.rb', line 6 def timerTask @timerTask end |
Instance Method Details
#run ⇒ Object
13 14 15 16 17 18 |
# File 'lib/com/wiris/util/sys/TimerProxy.rb', line 13 def run() if @isTimeout stop() end @timerTask::run(self) end |