Sha256: ff906760cad49d441c1a998958b165c9ef71981bdeea72859d217ac2e9550cdb

Contents?: true

Size: 633 Bytes

Versions: 5

Compression:

Stored size: 633 Bytes

Contents

# frozen_string_literal: true

module RubyGitCrypt
  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

5 entries across 5 versions & 1 rubygems

Version Path
ruby_git_crypt-0.1.0.pre.5 lib/ruby_git_crypt/options/types/standard.rb
ruby_git_crypt-0.1.0.pre.4 lib/ruby_git_crypt/options/types/standard.rb
ruby_git_crypt-0.1.0.pre.3 lib/ruby_git_crypt/options/types/standard.rb
ruby_git_crypt-0.1.0.pre.2 lib/ruby_git_crypt/options/types/standard.rb
ruby_git_crypt-0.1.0.pre.1 lib/ruby_git_crypt/options/types/standard.rb