Class: Rack::Handler::Yarn
- Inherits:
-
Object
- Object
- Rack::Handler::Yarn
- Defined in:
- lib/rack/handler/yarn.rb
Overview
Yarn webserver
Class Method Summary collapse
-
.run(app, options = {}) ⇒ Object
Takes a Rackup file and an options Hash.
Class Method Details
.run(app, options = {}) ⇒ Object
Takes a Rackup file and an options Hash.
11 12 13 14 15 |
# File 'lib/rack/handler/yarn.rb', line 11 def self.run(app, ={}) = .merge({ rack: app }) @server = ::Yarn::Server.new() @server.start end |