Class: GraphQL::Schema::MiddlewareChain::MiddlewareWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/schema/middleware_chain.rb

Overview

TODO: Remove this code once deprecated middleware becomes unsupported

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(callable) ⇒ MiddlewareWrapper

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

#callableObject (readonly)

Returns the value of attribute callable.



62
63
64
# File 'lib/graphql/schema/middleware_chain.rb', line 62

def callable
  @callable
end

Instance Method Details

#call(*args, &next_middleware) ⇒ Object



67
68
69
# File 'lib/graphql/schema/middleware_chain.rb', line 67

def call(*args, &next_middleware)
  callable.call(*args, next_middleware)
end