class GraphQL::Client::Schema::SkipDirective

def cast(value, errors)

Returns List instance or nil.

errors - Errors instance
values - JSON value

Internal: Cast JSON value to wrapped value.
def cast(value, errors)
  case value
  when NilClass
    nil
  else
    of_klass.cast(value, errors)
  end
end

def initialize(of_klass)

of_klass - BaseType instance

Internal: Construct list wrapper from other BaseType.
def initialize(of_klass)
  unless of_klass.is_a?(BaseType)
    raise TypeError, "expected #{of_klass.inspect} to be a #{BaseType}"
  end
  @of_klass = of_klass
end