Class: AppMainBase
- Inherits:
-
Object
- Object
- AppMainBase
- Defined in:
- lib/template/server_app_base.rb
Direct Known Subclasses
Instance Method Summary collapse
-
#initialize ⇒ AppMainBase
constructor
A new instance of AppMainBase.
- #resume ⇒ Object
- #start(argv) ⇒ Object
- #stop ⇒ Object
- #suspend ⇒ Object
Constructor Details
#initialize ⇒ AppMainBase
Returns a new instance of AppMainBase.
3 4 5 6 7 |
# File 'lib/template/server_app_base.rb', line 3 def initialize @aboet = false @exec = false @suspend = false end |
Instance Method Details
#resume ⇒ Object
22 23 24 |
# File 'lib/template/server_app_base.rb', line 22 def resume() @suspend = false end |
#start(argv) ⇒ Object
9 10 11 |
# File 'lib/template/server_app_base.rb', line 9 def start(argv) @exec = true end |
#stop ⇒ Object
13 14 15 16 |
# File 'lib/template/server_app_base.rb', line 13 def stop() @abort = true @exec = false end |
#suspend ⇒ Object
18 19 20 |
# File 'lib/template/server_app_base.rb', line 18 def suspend() @suspend = true end |