Class: GraphQL::Compatibility::ExecutionSpecification::SpecificationSchema::CustomCollection

Inherits:
Object
  • Object
show all
Defined in:
lib/graphql/compatibility/execution_specification/specification_schema.rb

Overview

A list object must implement #each

Instance Method Summary collapse

Constructor Details

#initialize(storage) ⇒ CustomCollection

Returns a new instance of CustomCollection.



42
43
44
# File 'lib/graphql/compatibility/execution_specification/specification_schema.rb', line 42

def initialize(storage)
  @storage = storage
end

Instance Method Details

#each(&block) ⇒ Object



46
47
48
# File 'lib/graphql/compatibility/execution_specification/specification_schema.rb', line 46

def each(&block)
  @storage.each(&block)
end