Class: Handlebarsjs::Helpers::Inflection::PluralizeNumberWord
- Inherits:
-
BaseHelper
- Object
- BaseHelper
- Handlebarsjs::Helpers::Inflection::PluralizeNumberWord
- Defined in:
- lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb
Overview
PluralizeNumberWord: Returns the plural form of the word based on a count with the count prefixed in the format "3 categories"
Instance Attribute Summary
Attributes inherited from BaseHelper
#block, #cmdlet, #parameter_names, #safe
Instance Method Summary collapse
Methods inherited from BaseHelper
#initialize, register_cmdlet, #wrapper
Constructor Details
This class inherits a constructor from Handlebarsjs::BaseHelper
Instance Method Details
#to_proc ⇒ Object
11 12 13 |
# File 'lib/handlebarsjs/helpers/inflection/pluralize_number_word.rb', line 11 def to_proc ->(value, count, _opts) { wrapper(cmdlet.call(value, count)) } end |