Class: Baurets::Optionsful::Server
- Inherits:
-
Object
- Object
- Baurets::Optionsful::Server
- Defined in:
- lib/baurets/optionsful/server.rb
Instance Method Summary collapse
- #call(env) ⇒ Object
-
#initialize(app) ⇒ Server
constructor
A new instance of Server.
Constructor Details
#initialize(app) ⇒ Server
Returns a new instance of Server.
5 6 7 8 |
# File 'lib/baurets/optionsful/server.rb', line 5 def initialize(app) @app = app @config = ::Baurets::Optionsful::Config.new end |
Instance Method Details
#call(env) ⇒ Object
10 11 12 13 14 15 16 |
# File 'lib/baurets/optionsful/server.rb', line 10 def call(env) unless env["REQUEST_METHOD"] == "OPTIONS" @app.call(env) else (env) end end |