Sha256: 0b352dd6f25b06e16f5b71eb2e0cc55546bc2c93dcfd2602db69446861244970
Contents?: true
Size: 514 Bytes
Versions: 29
Compression:
Stored size: 514 Bytes
Contents
# frozen_string_literal: true module Cmdlet # Inflection handling routines, eg. pluralize, singular, ordinalize module Inflection # Pluralize: Returns the plural form of the word in the string class Pluralize < Cmdlet::BaseCmdlet # # @param [String] value - value - value to pluralize # @return [String] value in plural form def call(value) return '' if value.nil? value = value.to_s if value.is_a?(Symbol) value.pluralize end end end end
Version data entries
29 entries across 29 versions & 1 rubygems