Sha256: 29032045abf5c024fc10be352f1b28b9df956ace47fbc355e47e1bd5dcc653ae

Contents?: true

Size: 147 Bytes

Versions: 4

Compression:

Stored size: 147 Bytes

Contents

class String
  
  # Returns the posessive form of a string.
  def possessiveize
    self + "'" + ([115,83].include?(self[-1]) ? '' : 's')
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
open_conference_ware-1.0.0.pre4 lib/ext/string_possessiveize.rb
open_conference_ware-1.0.0.pre3 lib/ext/string_possessiveize.rb
open_conference_ware-1.0.0.pre2 lib/ext/string_possessiveize.rb
open_conference_ware-1.0.0.pre1 lib/ext/string_possessiveize.rb