class Dry::Inflector
def uncountable?(input)
- Api: - private
Other tags:
- Since: - 0.1.0
Returns:
-
(TrueClass, FalseClass)
- the result of the check
Parameters:
-
input
(String
) -- the input
def uncountable?(input) input.match?(/\A[[:space:]]*\z/) || inflections.uncountables.include?(input.downcase) || inflections.uncountables.include?(input.split(/_|\b/).last.downcase) end