class Pyper::Pipes::Model::ForceEnumerator

Typically at the end of a pipeline, makes sure any lazy computations on the items are evaluated. Returning a lazy enumerator can be unexpected by the consumer, and may cause the enumerator to be evaluated more than once with unexpected results.

Public Class Methods

pipe(items, status = {}) click to toggle source

@param items [Enumerable::Lazy<Hash>] A list of items @param status [Hash] The mutable status field @return [Enumerable<Hash>] A list of items, deserialized according to the type mapping

# File lib/pyper/pipes/force_enumerator.rb, line 9
def self.pipe(items, status = {})
  items.force
end