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

Version Path
datacaster-4.1.0 lib/datacaster/context_nodes/pass_if.rb
datacaster-4.0.1 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.3.1 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.3.0 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.7 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.6 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.5 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.4 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.3 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.2 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.1 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.2.0 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.1.5 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.1.3 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.1.2 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.1.1 lib/datacaster/context_nodes/pass_if.rb
datacaster-3.1.0 lib/datacaster/context_nodes/pass_if.rb