class Milestoner::Commits::Enrichers::Format
Enriches a commit format based on trailer information.
Public Class Methods
new(key: "Format", **)
click to toggle source
Calls superclass method
# File lib/milestoner/commits/enrichers/format.rb, line 10 def initialize(key: "Format", **) @key = key super(**) end
Public Instance Methods
call(commit)
click to toggle source
# File lib/milestoner/commits/enrichers/format.rb, line 15 def call(commit) = commit.trailer_value_for(key).value_or(settings.commit_format) private attr_reader :key end