Module: GraphQL::Schema::Member::HasArguments::ArgumentClassAccessor Private

Defined in:
lib/graphql/schema/member/has_arguments.rb

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#argument_class(new_arg_class = nil) ⇒ 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.



315
316
317
318
319
320
321
322
323
# File 'lib/graphql/schema/member/has_arguments.rb', line 315

def argument_class(new_arg_class = nil)
  if new_arg_class
    @argument_class = new_arg_class
  elsif defined?(@argument_class) && @argument_class
    @argument_class
  else
    superclass.respond_to?(:argument_class) ? superclass.argument_class : GraphQL::Schema::Argument
  end
end