lib/hanami/utils/inflector.rb in hanami-utils-1.3.5 vs lib/hanami/utils/inflector.rb in hanami-utils-1.3.6
- old
+ new
@@ -312,11 +312,11 @@
# end
def self.inflections(&blk)
class_eval(&blk)
end
- # Add a custom inflection exception
+ # Adds a custom inflection exception
#
# @param [String] singular form
# @param [String] plural form
#
# @since 0.6.0
@@ -343,11 +343,11 @@
return unless defined? Inflecto
Inflecto.inflections.irregular(singular, plural)
end
- # Add an uncountable word
+ # Adds an uncountable word
#
# @param [Array<String>] words
#
# @since 0.6.0
#
@@ -364,11 +364,11 @@
Array(words).each do |word|
exception(word, word)
end
end
- # Pluralize the given string
+ # Pluralizes the given string
#
# @param string [String] a string to pluralize
#
# @return [String,NilClass] the pluralized string, if present
#
@@ -422,10 +422,10 @@
# rubocop:enable Style/PerlBackrefs
# rubocop:enable Metrics/AbcSize
# rubocop:enable Metrics/CyclomaticComplexity
# rubocop:enable Metrics/MethodLength
- # Singularize the given string
+ # Singularizes the given string
#
# @param string [String] a string to singularize
#
# @return [String,NilClass] the singularized string, if present
#