Sha256: f0b586a0ccc96c4336f7882ac958c12e4be9ec2fe822bc7db5a5701414057e18
Contents?: true
Size: 311 Bytes
Versions: 17
Compression:
Stored size: 311 Bytes
Contents
module Datacaster module ContextNodes class PassIf < Datacaster::ContextNode def cast(object, runtime:) @runtime = create_runtime(runtime) result = @base.with_runtime(@runtime).call(object) result.valid? ? Datacaster::ValidResult(object) : result end end end end
Version data entries
17 entries across 17 versions & 1 rubygems