Sha256: 53a4ee78b0e3ecada28a0b06029ef17da0f6478778ac2f6c05bc8383e802669e

Contents?: true

Size: 326 Bytes

Versions: 5

Compression:

Stored size: 326 Bytes

Contents

# A list type wraps another type.
#
# Get the underlying type with {#unwrap}
class GraphQL::ListType < GraphQL::BaseType
  include GraphQL::BaseType::ModifiesAnotherType
  attr_reader :of_type, :name
  def initialize(of_type:)
    @name = "List"
    @of_type = of_type
  end

  def kind
    GraphQL::TypeKinds::LIST
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
graphql-0.9.4 lib/graphql/list_type.rb
graphql-0.9.3 lib/graphql/list_type.rb
graphql-0.9.2 lib/graphql/list_type.rb
graphql-0.8.1 lib/graphql/list_type.rb
graphql-0.8.0 lib/graphql/list_type.rb