Sha256: f59b9cba121c5768b25a0a2e12e75ed438a247dd3a8e31c5d44060d94e13aa9a

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

# frozen_string_literal: true

require 'immutable-struct'

module RubyVault
  module Options
    module Values
      class KeyValue < ImmutableStruct.new(:key, :value)
        def initialize(key, value)
          super(key:, value:)
        end

        def resolve
          { key => value.resolve }
        end

        def render
          "'#{key}=#{value.render}'"
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ruby_vault-0.3.0.pre.2 lib/ruby_vault/options/values/key_value.rb
ruby_vault-0.3.0.pre.1 lib/ruby_vault/options/values/key_value.rb
ruby_vault-0.2.0 lib/ruby_vault/options/values/key_value.rb
ruby_vault-0.2.0.pre.6 lib/ruby_vault/options/values/key_value.rb
ruby_vault-0.2.0.pre.5 lib/ruby_vault/options/values/key_value.rb