module GraphQL::Execution::Lazy::Resolve::NullAccumulator
This object can be passed like an array, but it doesn't allocate an array until it's used.
There's one crucial difference: you have to capture the result of `#<<`. (This works with arrays but isn't required, since it has a side-effect.) @api private
Public Class Methods
<<(item)
click to toggle source
# File lib/graphql/execution/lazy/resolve.rb, line 17 def self.<<(item) [item] end
empty?()
click to toggle source
# File lib/graphql/execution/lazy/resolve.rb, line 21 def self.empty? true end