Class: Strobe::Server
- Inherits:
-
Rack::Server
- Object
- Rack::Server
- Strobe::Server
- Defined in:
- lib/strobe/server.rb
Instance Method Summary collapse
- #app ⇒ Object
-
#initialize(path = nil) ⇒ Server
constructor
A new instance of Server.
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
#app ⇒ Object
9 10 11 |
# File 'lib/strobe/server.rb', line 9 def app Rack::Directory.new(@path) end |