Skip to content

Instantly share code, notes, and snippets.

Created December 14, 2012 22:40
Show Gist options
  • Save anonymous/0cd5325e6fcb26c9caee to your computer and use it in GitHub Desktop.
Save anonymous/0cd5325e6fcb26c9caee to your computer and use it in GitHub Desktop.
def translate(word)
result = word.scan(/[aeiou]/).count >= 1 ? word + "ay" : ""
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment