Sha256: e0327f558451b95e94db3990efe888bb259594e4d6890d7ea7e81f0c746dec84
Contents?: true
Size: 340 Bytes
Versions: 16
Compression:
Stored size: 340 Bytes
Contents
module Datacaster class Transformer < Base def initialize(&block) raise "Expected block" unless block_given? @transform = block end def cast(object, runtime:) Datacaster.ValidResult(Runtimes::Base.(runtime, @transform, object)) end def inspect "#<Datacaster::Transformer>" end end end
Version data entries
16 entries across 16 versions & 1 rubygems