Class: Rvim::Lua::Loop::Timer
- Inherits:
-
Struct
- Object
- Struct
- Rvim::Lua::Loop::Timer
- Defined in:
- lib/rvim/lua/loop.rb
Instance Attribute Summary collapse
-
#callback ⇒ Object
Returns the value of attribute callback.
-
#deadline_at ⇒ Object
Returns the value of attribute deadline_at.
-
#id ⇒ Object
Returns the value of attribute id.
-
#repeat_ms ⇒ Object
Returns the value of attribute repeat_ms.
-
#stopped ⇒ Object
Returns the value of attribute stopped.
Instance Method Summary collapse
Instance Attribute Details
#callback ⇒ Object
Returns the value of attribute callback
22 23 24 |
# File 'lib/rvim/lua/loop.rb', line 22 def callback @callback end |
#deadline_at ⇒ Object
Returns the value of attribute deadline_at
22 23 24 |
# File 'lib/rvim/lua/loop.rb', line 22 def deadline_at @deadline_at end |
#id ⇒ Object
Returns the value of attribute id
22 23 24 |
# File 'lib/rvim/lua/loop.rb', line 22 def id @id end |
#repeat_ms ⇒ Object
Returns the value of attribute repeat_ms
22 23 24 |
# File 'lib/rvim/lua/loop.rb', line 22 def repeat_ms @repeat_ms end |
#stopped ⇒ Object
Returns the value of attribute stopped
22 23 24 |
# File 'lib/rvim/lua/loop.rb', line 22 def stopped @stopped end |
Instance Method Details
#fire_now?(now) ⇒ Boolean
23 24 25 |
# File 'lib/rvim/lua/loop.rb', line 23 def fire_now?(now) !stopped && deadline_at <= now end |