Sha256: 9ecf0aa0feef228c78ea38464168edef3606e7a23aeedb9b893582b1e185f88f
Contents?: true
Size: 527 Bytes
Versions: 23
Compression:
Stored size: 527 Bytes
Contents
# frozen_string_literal: true module Handlebarsjs module Helpers # Inflection handling routines, eg. pluralize, singular, ordinalize module Inflection # PluralizeNumber: Returns the plural form of the word based on a count in the format "categories" class PluralizeNumber < Handlebarsjs::BaseHelper register_cmdlet(Cmdlet::Inflection::PluralizeNumber) def to_proc ->(value, count, _opts) { wrapper(cmdlet.call(value, count)) } end end end end end
Version data entries
23 entries across 23 versions & 1 rubygems