Class: MyApp
- Inherits:
-
AppMainBase
- Object
- AppMainBase
- MyApp
- Defined in:
- lib/template/my_app_sample.rb
Instance Method Summary collapse
Methods inherited from AppMainBase
#initialize, #resume, #set_config, #suspend
Constructor Details
This class inherits a constructor from AppMainBase
Instance Method Details
#start(argv) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/template/my_app_sample.rb', line 5 def start(argv) super begin @abort = false puts argv argv.each do |v| yield v if block_given? end while true yield Time.now.to_s if block_given? yield @config["name1"] sleep 1 break if @abort end rescue puts $! puts $@ end end |
#stop ⇒ Object
25 26 27 |
# File 'lib/template/my_app_sample.rb', line 25 def stop() super end |