class String

Public Instance Methods

apostrophize() click to toggle source
# File lib/apostrophize.rb, line 2
def apostrophize
  res = ''
  last = self.split('').last
  last == 's' ? self + "'" :  self + "'s"
end