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