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)
- - (#call) app readonly
- - (Hash) options readonly
Instance Method Summary (collapse)
- - (Array) call(env)
-
- (Middleware) initialize(app, options = {})
constructor
A new instance of Middleware.
Constructor Details
- (Middleware) initialize(app, options = {})
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
- (#call) app (readonly)
6 7 8 |
# File 'lib/rack/rpc/middleware.rb', line 6 def app @app end |
- (Hash) options (readonly)
9 10 11 |
# File 'lib/rack/rpc/middleware.rb', line 9 def @options end |
Instance Method Details
- (Array) call(env)
21 22 23 |
# File 'lib/rack/rpc/middleware.rb', line 21 def call(env) @app.call(env) end |