Class: GraphQL::Compatibility::ExecutionSpecification::SpecificationSchema::CustomCollection
- Inherits:
-
Object
- Object
- GraphQL::Compatibility::ExecutionSpecification::SpecificationSchema::CustomCollection
- Defined in:
- lib/graphql/compatibility/execution_specification/specification_schema.rb
Overview
A list object must implement #each
Instance Method Summary collapse
- #each(&block) ⇒ Object
-
#initialize(storage) ⇒ CustomCollection
constructor
A new instance of CustomCollection.
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 |