Sha256: 53fa7873eae369ad977ec4b0b94013a4df29d24b04b8648485c1816846d3c814

Contents?: true

Size: 170 Bytes

Versions: 4

Compression:

Stored size: 170 Bytes

Contents

# frozen_string_literal: true

module Runcom
  # A generic key-value pair (KVP).
  Pair = Struct.new :key, :value do
    def to_env
      Hash[*values]
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
runcom-4.2.1 lib/runcom/pair.rb
runcom-4.2.0 lib/runcom/pair.rb
runcom-4.1.0 lib/runcom/pair.rb
runcom-4.0.0 lib/runcom/pair.rb