Sha256: 44f663a693c0a3a319a580819fdd7017e507c027f8b2fa41e4aafb4f5202a117

Contents?: true

Size: 466 Bytes

Versions: 2

Compression:

Stored size: 466 Bytes

Contents

# frozen_string_literal: true
module GraphQL
  class Schema
    class Member
      # Wraps a {Schema::Member} as a list type.
      # @see {Schema::Member#to_list_type}
      # @api private
      class ListTypeProxy
        include GraphQL::Schema::Member::CachedGraphQLDefinition

        def initialize(member)
          @member = member
        end

        def to_graphql
          @member.graphql_definition.to_list_type
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
graphql-1.8.0.pre2 lib/graphql/schema/member/list_type_proxy.rb
graphql-1.8.0.pre1 lib/graphql/schema/member/list_type_proxy.rb