Class: Handlebarsjs::Helpers::Inflection::Singularize
- Inherits:
-
BaseHelper
- Object
- BaseHelper
- Handlebarsjs::Helpers::Inflection::Singularize
- Defined in:
- lib/handlebarsjs/helpers/inflection/singularize.rb
Overview
Singularize: The reverse of #pluralize, returns the singular form of a word in a string
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/singularize.rb', line 11 def to_proc ->(value, _opts) { wrapper(cmdlet.call(value)) } end |