Class: AppMainBase

Inherits:
Object
  • Object
show all
Defined in:
lib/template/server_app_base.rb

Direct Known Subclasses

MyApp

Instance Method Summary collapse

Constructor Details

#initializeAppMainBase

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

#resumeObject



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

#stopObject



13
14
15
16
# File 'lib/template/server_app_base.rb', line 13

def stop()
  @abort = true
  @exec = false
end

#suspendObject



18
19
20
# File 'lib/template/server_app_base.rb', line 18

def suspend()
  @suspend = true
end