Sha256: a5cab7a0cd0d8ccc3dd16cceaa776abeca92f92e972d153e36f4c27356442dbf

Contents?: true

Size: 630 Bytes

Versions: 20

Compression:

Stored size: 630 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: name, value: value,
            separator: opts[:separator],
            placement: opts[:placement]
          )
        end

        def apply(builder)
          builder.with_option(
            name,
            value.render,
            separator: separator,
            placement: placement
          )
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
ruby_vault-0.2.0.pre.4 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.2.0.pre.3 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.2.0.pre.2 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.2.0.pre.1 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.18 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.17 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.16 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.15 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.14 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.13 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.12 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.11 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.10 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.9 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.8 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.7 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.6 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.5 lib/ruby_vault/options/types/standard.rb
ruby_vault-0.1.0.pre.4 lib/ruby_vault/options/types/standard.rb