Sha256: 478c3b0c940b27620b5fefbdf20c569b6bcfbed5fa70fdbe6da83673773702e2

Contents?: true

Size: 331 Bytes

Versions: 12

Compression:

Stored size: 331 Bytes

Contents

module Datacaster
  class Runner < Base
    def initialize(&block)
      raise "Expected block" unless block_given?

      @run = block
    end

    def cast(object, runtime:)
      Runtimes::Base.(runtime, @run, object)
      Datacaster.ValidResult(object)
    end

    def inspect
      "#<Datacaster::Runner>"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
datacaster-4.1.0 lib/datacaster/runner.rb
datacaster-4.0.1 lib/datacaster/runner.rb
datacaster-3.3.1 lib/datacaster/runner.rb
datacaster-3.3.0 lib/datacaster/runner.rb
datacaster-3.2.7 lib/datacaster/runner.rb
datacaster-3.2.6 lib/datacaster/runner.rb
datacaster-3.2.5 lib/datacaster/runner.rb
datacaster-3.2.4 lib/datacaster/runner.rb
datacaster-3.2.3 lib/datacaster/runner.rb
datacaster-3.2.2 lib/datacaster/runner.rb
datacaster-3.2.1 lib/datacaster/runner.rb
datacaster-3.2.0 lib/datacaster/runner.rb