Sha256: 624d4b43114b861baf79af30ca92e26bbe0ce05bb0fccb11a8f37d2da8524b67
Contents?: true
Size: 325 Bytes
Versions: 5
Compression:
Stored size: 325 Bytes
Contents
require 'arc-furnace/transform' module ArcFurnace class BlockTransform < Transform private_attr_reader :block def initialize(source:, block:) raise 'Must specify a block' if block.nil? @block = block super(source: source) end def transform(row) block.call(row) end end end
Version data entries
5 entries across 5 versions & 1 rubygems