Module: Tap::App::State
- Defined in:
- lib/tap/app.rb
Overview
The constants defining the possible App states.
Constant Summary collapse
- READY =
0
- RUN =
1
- STOP =
2
- TERMINATE =
3
Class Method Summary collapse
-
.state_str(state) ⇒ Object
Returns the string corresponding to the input state value.
Class Method Details
.state_str(state) ⇒ Object
207 208 209 |
# File 'lib/tap/app.rb', line 207 def state_str(state) constants.inject(nil) {|str, s| const_get(s) == state ? s.to_s : str} end |