Class: GraphQL::Schema::MiddlewareChain::MiddlewareWrapper Private
- Inherits:
-
Object
- Object
- GraphQL::Schema::MiddlewareChain::MiddlewareWrapper
- Defined in:
- lib/graphql/schema/middleware_chain.rb
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
TODO: Remove this code once deprecated middleware becomes unsupported
Instance Attribute Summary collapse
-
#callable ⇒ Object
readonly
private
Instance Method Summary collapse
-
#call(*args, &next_middleware) ⇒ Object
private
-
#initialize(callable) ⇒ MiddlewareWrapper
constructor
private
A new instance of MiddlewareWrapper.
Constructor Details
#initialize(callable) ⇒ MiddlewareWrapper
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of MiddlewareWrapper
63 64 65 |
# File 'lib/graphql/schema/middleware_chain.rb', line 63 def initialize(callable) @callable = callable end |
Instance Attribute Details
#callable ⇒ Object (readonly)
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
62 63 64 |
# File 'lib/graphql/schema/middleware_chain.rb', line 62 def callable @callable end |
Instance Method Details
#call(*args, &next_middleware) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
67 68 69 |
# File 'lib/graphql/schema/middleware_chain.rb', line 67 def call(*args, &next_middleware) callable.call(*args, next_middleware) end |