Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/dupe/string.rb
Instance Method Summary collapse
Instance Method Details
#plural? ⇒ Boolean
2 3 4 |
# File 'lib/dupe/string.rb', line 2 def plural? self.to_s == pluralize end |
#singular? ⇒ Boolean
6 7 8 |
# File 'lib/dupe/string.rb', line 6 def singular? self.to_s == singularize end |