Class: String
Overview
String extensions
Instance Method Summary collapse
Instance Method Details
#plural? ⇒ Boolean
3 4 5 |
# File 'lib/patches/string_ext.rb', line 3 def plural? self != self.singularize end |
#singular? ⇒ Boolean
7 8 9 |
# File 'lib/patches/string_ext.rb', line 7 def singular? self != self.pluralize end |