Class: Temp1
Instance Attribute Summary collapse
-
#seconds ⇒ Object
Returns the value of attribute seconds.
Instance Method Summary collapse
-
#initialize ⇒ Temp1
constructor
A new instance of Temp1.
- #live_seconds ⇒ Object
Methods included from Events
#event_chain, #listeners, #on, #remove_listener, #trigger!, #trigger_by_scope!, #trigger_for_methods!
Constructor Details
#initialize ⇒ Temp1
Returns a new instance of Temp1.
5 6 7 |
# File 'lib/volt/extra_core/time.rb', line 5 def initialize @seconds = ReactiveValue.new(nil) end |
Instance Attribute Details
#seconds ⇒ Object
Returns the value of attribute seconds.
4 5 6 |
# File 'lib/volt/extra_core/time.rb', line 4 def seconds @seconds end |
Instance Method Details
#live_seconds ⇒ Object
13 14 15 |
# File 'lib/volt/extra_core/time.rb', line 13 def live_seconds @seconds end |