Sha256: 4f73ae343666c323e0298e1283ae008cc5a480258bedf2aab9dc1ab4f32d0017

Contents?: true

Size: 565 Bytes

Versions: 23

Compression:

Stored size: 565 Bytes

Contents

# frozen_string_literal: true

module Handlebarsjs
  module Helpers
    # Inflection handling routines, eg. pluralize, singular, ordinalize
    module Inflection
      # PluralizeNumberWord: Returns the plural form of the word based on a count with the count prefixed in the format "3 categories"
      class PluralizeNumberWord < Handlebarsjs::BaseHelper
        register_cmdlet(Cmdlet::Inflection::PluralizeNumberWord)

        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

Version Path
handlebarsjs-0.14.2 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.14.1 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.14.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.13.1 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.13.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.12.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.11.3 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.11.2 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.11.1 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.11.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.10.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.9.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.8.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.7.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.6.3 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.6.2 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.6.1 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.6.0 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.5.7 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
handlebarsjs-0.5.6 lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb