Sha256: 3e73933c619decec01dd79b698ab854bff914f76af52a5da0b6be6a546957f9d

Contents?: true

Size: 352 Bytes

Versions: 2

Compression:

Stored size: 352 Bytes

Contents

# -*- coding: utf-8 -*-
class AppMain
  def initialize
    @aboet = false
  end

  def start(file)
    begin
      @abort = false
      puts file
      while true
        yield Time.now.to_s if block_given?
        sleep 1
        break if @abort
      end
    rescue
      puts $!
      puts $@
    end
  end

  def stop()
    @abort = true
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
browser_app_base-0.0.2 lib/template/server_app.rb
browser_app_base-0.0.1 lib/template/server_app.rb