Sha256: 4281251da0c8cd935ceb546238a2ae3e5faace07ab0ec75ab3513bedb8bdc6de

Contents?: true

Size: 444 Bytes

Versions: 6

Compression:

Stored size: 444 Bytes

Contents

# frozen_string_literal: true

require 'eac_ruby_utils/core_ext'

module Avm
  module Scms
    class CommitInfo
      enable_immutable

      immutable_accessor :fixup, :message
      immutable_accessor :path, type: :array

      def to_s
        self.class.name.demodulize + '[' +
          %w[fixup message].map { |m| [m, send(m)] }.reject { |m| m[1].blank? }
            .map { |m| m.join(': ') }.join(',') + ']'
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
eac_tools-0.53.0 sub/avm/lib/avm/scms/commit_info.rb
eac_tools-0.52.0 sub/avm/lib/avm/scms/commit_info.rb
avm-0.60.0 lib/avm/scms/commit_info.rb
eac_tools-0.51.0 sub/avm/lib/avm/scms/commit_info.rb
avm-0.59.0 lib/avm/scms/commit_info.rb
eac_tools-0.50.0 sub/avm/lib/avm/scms/commit_info.rb