Sha256: dd11b4bf1d2e9c582e3c7050e89c3c9fda55c720e45e15a0a8ee9b19ce798bbe

Contents?: true

Size: 631 Bytes

Versions: 10

Compression:

Stored size: 631 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

      # Browserにメッセージ送信
      app_send("popup:start app #{argv[0]}")

      # 履歴の保存
      add_history("history.json", argv[0])

      while true
        yield Time.now.to_s if block_given?
        puts Time.now.to_s
        yield @config["name1"]
        sleep 1
        break if @abort
      end
    rescue
      puts $!
      puts $@
    end
  end

  def stop()
    super
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
python_uml_class-0.1.0 lib/my_app_sample.rb
browser_app_base-0.1.7 lib/template/my_app_sample.rb
browser_app_base-0.1.6 lib/template/my_app_sample.rb
browser_app_base-0.1.5 lib/template/my_app_sample.rb
browser_app_base-0.1.4 lib/template/my_app_sample.rb
browser_app_base-0.1.3 lib/template/my_app_sample.rb
browser_app_base-0.1.2 lib/template/my_app_sample.rb
browser_app_base-0.1.1 lib/template/my_app_sample.rb
browser_app_base-0.1.0 lib/template/my_app_sample.rb
browser_app_base-0.0.9 lib/template/my_app_sample.rb