Class: Strobe::Server

Inherits:
Rack::Server
  • Object
show all
Defined in:
lib/strobe/server.rb

Instance Method Summary collapse

Constructor Details

#initialize(path = nil) ⇒ Server

Returns a new instance of Server.



5
6
7
# File 'lib/strobe/server.rb', line 5

def initialize(path = nil)
  @path = path
end

Instance Method Details

#appObject



9
10
11
# File 'lib/strobe/server.rb', line 9

def app
  Rack::Directory.new(@path)
end