Term2::Components::Timer
Inherits Term2::Model < Reference < Object
Constructors
Instance methods
id
Sourceinit
Init is the first function that will be called. It returns an optional initial command. To not perform an initial command return nil.
interval
Sourceinterval=(interval : Time::Span)
Sourcerunning?
Sourcestart
Sourcestop
Sourcetick_cmd
Sourcetimed_out?
Sourcetimeout
Sourcetimeout=(timeout : Time::Span)
Sourcetoggle
SourceUpdate is called when a message is received. Use it to inspect the message and, in response, update the model and/or send a command.
view
View renders the program's UI, which is just a string. The view is rendered after every Update.