Class: Rack::RPC::Middleware
- Inherits:
-
Object
- Object
- Rack::RPC::Middleware
- Defined in:
- lib/rack/rpc/middleware.rb
Overview
A Rack middleware base class.
Direct Known Subclasses
Instance Attribute Summary collapse
- #app ⇒ #call readonly
- #options ⇒ Hash readonly
Instance Method Summary collapse
- #call(env) ⇒ Array
-
#initialize(app, options = {}) ⇒ Middleware
constructor
A new instance of Middleware.
Constructor Details
#initialize(app, options = {}) ⇒ Middleware
Returns a new instance of Middleware.
14 15 16 |
# File 'lib/rack/rpc/middleware.rb', line 14 def initialize(app, = {}) @app, @options = app, .dup end |
Instance Attribute Details
#options ⇒ Hash (readonly)
9 10 11 |
# File 'lib/rack/rpc/middleware.rb', line 9 def @options end |
Instance Method Details
#call(env) ⇒ Array
21 22 23 |
# File 'lib/rack/rpc/middleware.rb', line 21 def call(env) @app.call(env) end |