Module: SingularPluralDetection

Included in:
String, Symbol
Defined in:
lib/superdupe/singular_plural_detection.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#plural?Boolean

Returns:

  • (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

Returns:

  • (Boolean)


2
3
4
# File 'lib/superdupe/singular_plural_detection.rb', line 2

def singular?
  self.to_s.singularize == self.to_s
end