Sha256: 5ce2c2fcac75c7cd8fabdb3e42284d0730d204087501e5551f6d94f62dac803f
Contents?: true
Size: 381 Bytes
Versions: 20
Compression:
Stored size: 381 Bytes
Contents
require 'arc-furnace/enumerator_source' module ArcFurnace class HashSource < ArcFurnace::EnumeratorSource attr_reader :hashes # expects an array of hashes def initialize(hashes:) @hashes = hashes super() end def build_enumerator Enumerator.new do |yielder| hashes.each { |hash| yielder.yield(hash) } end end end end
Version data entries
20 entries across 20 versions & 1 rubygems