Class: String

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

Instance Method Summary collapse

Instance Method Details

#plural?Boolean

Returns:

  • (Boolean)


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

def plural?
  self.to_s == pluralize
end

#singular?Boolean

Returns:

  • (Boolean)


6
7
8
# File 'lib/dupe/string.rb', line 6

def singular?
  self.to_s == singularize
end