Module: Mongoid::Extensions::String::Inflections

Included in:
String
Defined in:
lib/mongoid/extensions/string/inflections.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#plural?Boolean

Returns:



8
9
10
# File 'lib/mongoid/extensions/string/inflections.rb', line 8

def plural?
  pluralize == self
end

#singular?Boolean

Returns:



5
6
7
# File 'lib/mongoid/extensions/string/inflections.rb', line 5

def singular?
  singularize == self
end