Sha256: fa05ca56e98205f0e65210eb0a845600dca4f605b04b20d819d459f2b6e42299

Contents?: true

Size: 401 Bytes

Versions: 1

Compression:

Stored size: 401 Bytes

Contents

require 'sinatra/base'

module StripMem
  class Web
    def initialize(channel)
      @channel = channel
    end

    def run!
      puts "Starting a server on http://localhost:9999/"
      App.run!(:port => 9999, :server => 'webrick') do
        system "open http://localhost:9999/"
      end
    end
    
    class App < Sinatra::Base
      get '/' do
        erb :index
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
stripmem-0.0.3 lib/stripmem/web.rb