module Git::Lint::Refinements::Strings

Public Instance Methods

fixup?(= match?(/\Afixup!\s/)) click to toggle source
# File lib/git/lint/refinements/strings.rb, line 14
    def fixup? = match?(/\Afixup!\s/)

    def squash? = match?(/\Asquash!\s/)
  end
end
pluralize(count:, suffix: "s") click to toggle source
# File lib/git/lint/refinements/strings.rb, line 8
def pluralize count:, suffix: "s"
  return "#{count} #{self}" if count == 1

  "#{count} #{self}#{suffix}"
end
squash?(= match?(/\Asquash!\s/)) click to toggle source
# File lib/git/lint/refinements/strings.rb, line 16
  def squash? = match?(/\Asquash!\s/)
end