Class: String

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

Direct Known Subclasses

RemoteModule::FormatableString

Instance Method Summary collapse

Instance Method Details

#pluralizeObject



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

def pluralize
  self + "s"
end

#singularizeObject



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

def singularize
  self[0..-2]
end