Sha256: ef7a7688a92762c69e1b9caa3f068b2507e6fe3e7de96f93e9bc95d81d6db3d6

Contents?: true

Size: 519 Bytes

Versions: 102

Compression:

Stored size: 519 Bytes

Contents

# frozen_string_literal: true

module GraphQL
  class Schema
    class Wrapper
      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 unwrap
        @of_type.unwrap
      end

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

Version data entries

102 entries across 102 versions & 1 rubygems

Version Path
graphql-2.4.14 lib/graphql/schema/wrapper.rb
graphql-2.3.22 lib/graphql/schema/wrapper.rb
graphql-2.1.15 lib/graphql/schema/wrapper.rb
graphql-2.0.32 lib/graphql/schema/wrapper.rb
graphql-2.1.14 lib/graphql/schema/wrapper.rb
graphql-2.2.17 lib/graphql/schema/wrapper.rb
graphql-2.3.21 lib/graphql/schema/wrapper.rb
graphql-2.4.13 lib/graphql/schema/wrapper.rb
graphql-2.4.12 lib/graphql/schema/wrapper.rb
graphql-2.4.11 lib/graphql/schema/wrapper.rb
graphql-2.4.10 lib/graphql/schema/wrapper.rb
graphql-2.4.9 lib/graphql/schema/wrapper.rb
graphql-2.4.8 lib/graphql/schema/wrapper.rb
graphql-2.4.7 lib/graphql/schema/wrapper.rb
graphql-2.4.6 lib/graphql/schema/wrapper.rb
graphql-2.4.5 lib/graphql/schema/wrapper.rb
graphql-2.4.4 lib/graphql/schema/wrapper.rb
graphql-2.4.3 lib/graphql/schema/wrapper.rb
graphql-2.4.2 lib/graphql/schema/wrapper.rb
graphql-2.4.1 lib/graphql/schema/wrapper.rb