Sha256: 1edf23df12f236a852b30500ba5ef5e1b4694cdc52c2b0dbeed234171ff0fa0a

Contents?: true

Size: 537 Bytes

Versions: 5

Compression:

Stored size: 537 Bytes

Contents

# typed: strict

module Kuby
  module Docker
    class InlineLayer < Layer
      # extend T::Sig

      # T::Sig::WithoutRuntime.sig { returns(T.proc.params(df: Dockerfile).void) }
      attr_reader :block

      # T::Sig::WithoutRuntime.sig { params(block: T.proc.params(df: Dockerfile).void).void }
      def initialize(block)
        @block = block
      end

      # T::Sig::WithoutRuntime.sig { override.params(dockerfile: Dockerfile).void }
      def apply_to(dockerfile)
        block.call(dockerfile)
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
kuby-core-0.20.2 lib/kuby/docker/inline_layer.rb
kuby-core-0.20.1 lib/kuby/docker/inline_layer.rb
kuby-core-0.20.0 lib/kuby/docker/inline_layer.rb
kuby-core-0.19.0 lib/kuby/docker/inline_layer.rb
kuby-core-0.18.0 lib/kuby/docker/inline_layer.rb