Class: String
- Inherits:
-
Object
- Object
- String
- Defined in:
- lib/remote_model/string.rb
Direct Known Subclasses
Instance Method Summary collapse
Instance Method Details
#pluralize ⇒ Object
2 3 4 |
# File 'lib/remote_model/string.rb', line 2 def pluralize self + "s" end |
#singularize ⇒ Object
6 7 8 |
# File 'lib/remote_model/string.rb', line 6 def singularize self[0..-2] end |