Sha256: e4416dbfd2cd8738829205dac45a90f9dbf92a06d57db775bfca71a878a12c64

Contents?: true

Size: 648 Bytes

Versions: 32

Compression:

Stored size: 648 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  class Schema
    class Wrapper
      include GraphQL::Schema::Member::CachedGraphQLDefinition
      include GraphQL::Schema::Member::TypeSystemHelpers

      # @return [Class, Module] The inner type of this wrapping type, the type of which one or more objects may be present.
      attr_reader :of_type

      def initialize(of_type)
        @of_type = of_type
      end

      def to_graphql
        raise NotImplementedError
      end

      def unwrap
        @of_type.unwrap
      end

      def ==(other)
        self.class == other.class && of_type == other.of_type
      end
    end
  end
end

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
graphql-1.8.18 lib/graphql/schema/wrapper.rb
graphql-1.9.14 lib/graphql/schema/wrapper.rb
graphql-1.10.0.pre1 lib/graphql/schema/wrapper.rb
graphql-1.9.13 lib/graphql/schema/wrapper.rb
graphql-1.9.12 lib/graphql/schema/wrapper.rb
graphql-1.9.11 lib/graphql/schema/wrapper.rb
graphql-1.9.10 lib/graphql/schema/wrapper.rb
graphql-1.9.9 lib/graphql/schema/wrapper.rb
graphql-1.9.8 lib/graphql/schema/wrapper.rb
graphql-1.9.7 lib/graphql/schema/wrapper.rb
graphql-1.9.6 lib/graphql/schema/wrapper.rb
graphql-1.9.5 lib/graphql/schema/wrapper.rb
graphql-1.9.4 lib/graphql/schema/wrapper.rb
graphql-1.9.3 lib/graphql/schema/wrapper.rb
graphql-1.9.2 lib/graphql/schema/wrapper.rb
graphql-1.8.17 lib/graphql/schema/wrapper.rb
graphql-1.8.16 lib/graphql/schema/wrapper.rb
graphql-1.9.1 lib/graphql/schema/wrapper.rb
graphql-1.9.0 lib/graphql/schema/wrapper.rb
graphql-1.8.15 lib/graphql/schema/wrapper.rb