Sha256: 0acce5d1d37eb0d2e4c20e0614dcbc78439e91a44c2a1abfe14b99fe1d136279
Contents?: true
Size: 486 Bytes
Versions: 24
Compression:
Stored size: 486 Bytes
Contents
# frozen_string_literal: true module Handlebarsjs module Helpers # Inflection handling routines, eg. pluralize, singular, ordinalize module Inflection # Singularize: The reverse of #pluralize, returns the singular form of a word in a string class Singularize < Handlebarsjs::BaseHelper register_cmdlet(Cmdlet::Inflection::Singularize) def to_proc ->(value, _opts) { wrapper(cmdlet.call(value)) } end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems