Sha256: 69ace6d4300d835e21a606dfe67eeb485b7b3d928235fb4bd8ae37b9af040411

Contents?: true

Size: 463 Bytes

Versions: 12

Compression:

Stored size: 463 Bytes

Contents

# frozen_string_literal: true

module Lino
  module Builders
    module Mixins
      module WorkingDirectory
        def initialize(state)
          @working_directory = state[:working_directory]
          super
        end

        def with_working_directory(working_directory)
          with(working_directory:)
        end

        private

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

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
lino-4.2.0.pre.2 lib/lino/builders/mixins/working_directory.rb
lino-4.2.0.pre.1 lib/lino/builders/mixins/working_directory.rb
lino-4.1.0 lib/lino/builders/mixins/working_directory.rb
lino-4.1.0.pre.2 lib/lino/builders/mixins/working_directory.rb
lino-4.1.0.pre.1 lib/lino/builders/mixins/working_directory.rb
lino-4.0.0 lib/lino/builders/mixins/working_directory.rb
lino-4.0.0.pre.2 lib/lino/builders/mixins/working_directory.rb
lino-3.2.0.pre.10 lib/lino/builders/mixins/working_directory.rb
lino-3.2.0.pre.9 lib/lino/builders/mixins/working_directory.rb
lino-3.2.0.pre.8 lib/lino/builders/mixins/working_directory.rb
lino-3.2.0.pre.7 lib/lino/builders/mixins/working_directory.rb
lino-3.2.0.pre.6 lib/lino/builders/mixins/working_directory.rb