Sha256: 5d84712ba5f979cd248959beb0c5d2e7a30d9c664b2ae94ae66ce23645e1bfc5
Contents?: true
Size: 408 Bytes
Versions: 5
Compression:
Stored size: 408 Bytes
Contents
# frozen_string_literal: true module Git module Lint module Refinements module Strings refine String do def pluralize count:, suffix: "s" return "#{count} #{self}" if count == 1 "#{count} #{self}#{suffix}" end def fixup? = match?(/\Afixup!\s/) def squash? = match?(/\Asquash!\s/) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems