Class: Rubrowser::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/server.rb

Class Method Summary collapse

Class Method Details

.startObject



16
17
18
19
20
21
22
23
# File 'lib/server.rb', line 16

def self.start
  Rubrowser::Data.instance.parse
  Thread.new do
    run! host: 'localhost',
         port: 9000,
         root: File.expand_path('../../', __FILE__)
  end.join
end