Sha256: 1920543785d1abc847b51c11ac6cb36aa580d10d2d257a79b127355a83b31dce
Contents?: true
Size: 473 Bytes
Versions: 1
Compression:
Stored size: 473 Bytes
Contents
# frozen_string_literal: true module Milestoner module Commits module Enrichers # Enriches a commit format based on trailer information. class Format include Milestoner::Import[:settings] def initialize(key: "Format", **) super(**) @key = key end def call(commit) = commit.trailer_value_for(key).value_or(settings.commit_format) private attr_reader :key end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
milestoner-18.12.0 | lib/milestoner/commits/enrichers/format.rb |