module OasRails::Extractors::RenderResponseExtractor
def test_singularity(str)
-
(Boolean)
- True if the string is a singular model, false otherwise.
Parameters:
-
str
(String
) -- The string to test.
def test_singularity(str) str.pluralize != str && str.singularize == str end