class Release::Notes::Prettify
Attributes
line[R]
Public Class Methods
new(line:)
click to toggle source
Release::Notes::Prettify
initializer
@param [String] line - a line from the git log
# File lib/release/notes/prettify.rb, line 14 def initialize(line:) @line = line end
Public Instance Methods
perform()
click to toggle source
Perform method for Release::Notes::Prettify
@return [String] log message
# File lib/release/notes/prettify.rb, line 23 def perform line.gsub(labels_regex, "").strip end
Private Instance Methods
labels_regex()
click to toggle source
Holds the regular expression used to match a pattern against labels
@return [Regexp] regex containing all labels
# File lib/release/notes/prettify.rb, line 34 def labels_regex Regexp.new config_all_labels, Regexp::IGNORECASE end