Sha256: 95e7dc259f315d47a65182665a84aa9e85fe015c6caebce2c66217581ae2bc9f
Contents?: true
Size: 302 Bytes
Versions: 16
Compression:
Stored size: 302 Bytes
Contents
module AcceptanceTests module PluralizationHelpers def pluralize(count, singular_version, plural_version = nil) plural_version ||= singular_version + 's' if count == 1 "#{count} #{singular_version}" else "#{count} #{plural_version}" end end end end
Version data entries
16 entries across 16 versions & 3 rubygems