Class: Cubic::Engine
- Inherits:
-
Object
- Object
- Cubic::Engine
- Defined in:
- lib/cubic/engine.rb
Overview
Engine is what makes Cubic a Rack application.
Direct Known Subclasses
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(env) ⇒ Engine
constructor
A new instance of Engine.
- #response ⇒ Object
Constructor Details
#initialize(env) ⇒ Engine
Returns a new instance of Engine.
12 13 14 |
# File 'lib/cubic/engine.rb', line 12 def initialize(env) @request = Rack::Request.new(env) end |
Class Method Details
.call(env) ⇒ Object
8 9 10 |
# File 'lib/cubic/engine.rb', line 8 def self.call(env) new(env).response.finish end |