Created
October 13, 2016 10:35
-
-
Save sstarr/7bdb4c368b7b61fc8b85fa9ce2ab1346 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def possessive_name | |
# Profile name is a proper noun, so we add an apostrophe with or without 's' as appropriate | |
# e.g. Bob Smith's project or Bob Edwards' project | |
# See rule 1c. here: http://www.grammarbook.com/punctuation/apostro.asp | |
name[-1] == "s" ? "#{name}'" : "#{name}'s" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment