# -*- coding: utf-8 -*- require "server_app_base.rb" class MyApp < AppMainBase 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? sleep 1 break if @abort end rescue puts $! puts $@ end end def stop() super end end