Class: String

Inherits:
Object
  • Object
show all
Defined in:
lib/natural/string.rb

Instance Method Summary collapse

Instance Method Details

#plural?Boolean

Returns:

  • (Boolean)


2
3
4
# File 'lib/natural/string.rb', line 2

def plural?
  self != self.singularize && self == self.pluralize
end