Sha256: f118cb4652a2deabbc2ec85823e27d6d175f4d9c9d42e0dffe34f00fddded7eb

Contents?: true

Size: 449 Bytes

Versions: 5

Compression:

Stored size: 449 Bytes

Contents

# -*- 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?
        yield @config["name1"]
        sleep 1
        break if @abort
      end
    rescue
      puts $!
      puts $@
    end
  end

  def stop()
    super
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
browser_app_base-0.0.8 lib/template/my_app_sample.rb
browser_app_base-0.0.7 lib/template/my_app_sample.rb
browser_app_base-0.0.6 lib/template/my_app_sample.rb
browser_app_base-0.0.5 lib/template/my_app_sample.rb
browser_app_base-0.0.4 lib/template/my_app_sample.rb