lib/patches/string.rb
def possessive
    return self if empty?

    if ends_with?("s")
      "#{self}’"
    else
      "#{self}’s"
    end
  end
# Returns the possessive form of a string.
# For example, "Bill".possessive returns "Bill's", whereas "Years".possessive
# returns "Years'"
Returns the possessive form of a string.
Returns the possessive form of a string .
def possessive
    return self if empty?
    if ends_with?("s")
      "#{self}’"
    else
      "#{self}’s"
    end
  end
def possessive return self if empty? if ends_with? ( "s" ) "#{self}’" else "#{self}’s" end end
Returns the possessive form of a string.
Returns the possessive form of a string .