Class: Rack::Handler::Trinidad
- Inherits:
-
Object
- Object
- Rack::Handler::Trinidad
- Defined in:
- lib/rack/handler/trinidad.rb
Class Method Summary collapse
Class Method Details
.run(app, options = {}) ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/rack/handler/trinidad.rb', line 7 def self.run(app, ={}) opts = .dup opts[:app] = app opts[:port] = 3000 opts[:address] = ([:Host] || 'localhost') ::Trinidad::Server.new(opts).start end |