Class: GraphQL::Schema::MiddlewareChain::MiddlewareWrapper
- Inherits:
-
Object
- Object
- GraphQL::Schema::MiddlewareChain::MiddlewareWrapper
- Defined in:
- lib/graphql/schema/middleware_chain.rb
Overview
TODO: Remove this code once deprecated middleware becomes unsupported
Instance Attribute Summary collapse
-
#callable ⇒ Object
readonly
Returns the value of attribute callable.
Instance Method Summary collapse
- #call(*args, &next_middleware) ⇒ Object
-
#initialize(callable) ⇒ MiddlewareWrapper
constructor
A new instance of MiddlewareWrapper.
Constructor Details
#initialize(callable) ⇒ MiddlewareWrapper
Returns a new instance of MiddlewareWrapper.
59 60 61 |
# File 'lib/graphql/schema/middleware_chain.rb', line 59 def initialize(callable) @callable = callable end |
Instance Attribute Details
#callable ⇒ Object (readonly)
Returns the value of attribute callable.
58 59 60 |
# File 'lib/graphql/schema/middleware_chain.rb', line 58 def callable @callable end |
Instance Method Details
#call(*args, &next_middleware) ⇒ Object
63 64 65 |
# File 'lib/graphql/schema/middleware_chain.rb', line 63 def call(*args, &next_middleware) callable.call(*args, next_middleware) end |