Module: SingularPluralDetection
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#plural? ⇒ Boolean
6 7 8 |
# File 'lib/superdupe/singular_plural_detection.rb', line 6 def plural? self.to_s.pluralize == self.to_s end |
#singular? ⇒ Boolean
2 3 4 |
# File 'lib/superdupe/singular_plural_detection.rb', line 2 def singular? self.to_s.singularize == self.to_s end |