Class: GraphQL::BackwardsCompatibility::LastArgumentsWrapper Private

Inherits:
FirstArgumentsWrapper show all
Defined in:
lib/graphql/backwards_compatibility.rb

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.

Instance Method Summary collapse

Methods inherited from FirstArgumentsWrapper

#initialize

Constructor Details

This class inherits a constructor from GraphQL::BackwardsCompatibility::FirstArgumentsWrapper

Instance Method Details

#call(*args) ⇒ 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.



54
55
56
57
# File 'lib/graphql/backwards_compatibility.rb', line 54

def call(*args)
  backwards_compat_args = args.last(@old_arity)
  @callable.call(*backwards_compat_args)
end