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
- #set_config(config) ⇒ Object
- #start(argv) ⇒ Object
- #stop ⇒ Object
- #suspend ⇒ Object
Constructor Details
#initialize ⇒ AppMainBase
Returns a new instance of AppMainBase.
3 4 5 6 7 8 |
# File 'lib/template/server_app_base.rb', line 3 def initialize @config = nil @aboet = false @exec = false @suspend = false end |
Instance Method Details
#resume ⇒ Object
27 28 29 |
# File 'lib/template/server_app_base.rb', line 27 def resume() @suspend = false end |
#set_config(config) ⇒ Object
10 11 12 |
# File 'lib/template/server_app_base.rb', line 10 def set_config(config) @config = config end |
#start(argv) ⇒ Object
14 15 16 |
# File 'lib/template/server_app_base.rb', line 14 def start(argv) @exec = true end |
#stop ⇒ Object
18 19 20 21 |
# File 'lib/template/server_app_base.rb', line 18 def stop() @abort = true @exec = false end |
#suspend ⇒ Object
23 24 25 |
# File 'lib/template/server_app_base.rb', line 23 def suspend() @suspend = true end |