Sha256: b72c1ab649b2ceb4b6f74c0ff9271a04648517c95329c5d8ae0ffb0631fcbd99
Contents?: true
Size: 525 Bytes
Versions: 24
Compression:
Stored size: 525 Bytes
Contents
# frozen_string_literal: true module Handlebarsjs module Helpers # Inflection handling routines, eg. pluralize, singular, ordinalize module Inflection # Ordinalize: Turns a number into an ordinal string used to denote the position in an ordered sequence such as 1st, 2nd, 3rd, 4th. class Ordinalize < Handlebarsjs::BaseHelper register_cmdlet(Cmdlet::Inflection::Ordinalize) def to_proc ->(value, _opts) { wrapper(cmdlet.call(value)) } end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems