Sha256: 55e5a11b2b333cb04e5e862fa97bda1806a046e2376644f3f4f62b72b531c804

Contents?: true

Size: 505 Bytes

Versions: 1

Compression:

Stored size: 505 Bytes

Contents

require 'sinatra'
require 'doppelserver/data'
# Most of the BaseServer class is in the routes below:
require 'doppelserver/routes/control'
require 'doppelserver/routes/rest'

module Doppelserver
  class BaseServer < Sinatra::Base
    #
    # Hold all of the data internally in the @@data.
    # It's the Data class, which holds a hash of data and
    # another of next keys. (???)
    #
    configure do
      @@data = Data.new
    end

    run! if app_file == $PROGRAM_NAME
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
doppelserver-1.0.0 lib/doppelserver/base_server.rb