Skip to content

Instantly share code, notes, and snippets.

@daniellockard
Forked from Solnse/trasnlate.rb
Created December 14, 2012 22:15
Show Gist options
  • Save daniellockard/4289155 to your computer and use it in GitHub Desktop.
Save daniellockard/4289155 to your computer and use it in GitHub Desktop.
def translate(word)
@word = word.to_s
result = ""
if word.scan(/[aeiou]/).count >= 1
result << @word + "ay"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment