Skip to content

Instantly share code, notes, and snippets.

@nathancarnes
Forked from amiel/gist:474384
Created July 13, 2010 20:24
Show Gist options
  • Save nathancarnes/474464 to your computer and use it in GitHub Desktop.
Save nathancarnes/474464 to your computer and use it in GitHub Desktop.
def possessivize(owner)
owner.ends_with?('s') ? owner + "’" : owner + "’s"
end
@nathancarnes
Copy link
Author

def possessivize(owner)
owner.ends_with?('s') ? owner + "‘" : owner + "‘s"
end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment