Sha256: 442311da28cb4343d2d841474b44c28b6f58a1a2361c3959b55edd7c407bb885

Contents?: true

Size: 423 Bytes

Versions: 1

Compression:

Stored size: 423 Bytes

Contents

# frozen_string_literal: true

module Lino
  module Builders
    module Mixins
      module Executor
        def initialize(state)
          @executor = state[:executor] || Executors::Childprocess.new
          super
        end

        def with_executor(executor)
          with(executor:)
        end

        private

        def state
          super.merge(executor: @executor)
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
lino-3.2.0.pre.6 lib/lino/builders/mixins/executor.rb