Sha256: b6f25ff133fba0a656875fffbe5464db094d7c2702e7b7f61c236e5b95742930

Contents?: true

Size: 599 Bytes

Versions: 5

Compression:

Stored size: 599 Bytes

Contents

# frozen_string_literal: true

module RubyVault
  module Options
    module Types
      class Standard < ImmutableStruct.new(
        :name,
        :value,
        :separator,
        :placement
      )
        def initialize(name, value, **opts)
          super(
            name:, value:,
            separator: opts[:separator],
            placement: opts[:placement]
          )
        end

        def apply(builder)
          builder.with_option(
            name,
            value.render,
            separator:,
            placement:
          )
        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/types/standard.rb
ruby_vault-0.3.0.pre.1 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.2.0 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.2.0.pre.6 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.2.0.pre.5 lib/ruby_vault/options/types/standard.rb