Guest User

Untitled

a guest
Jun 18th, 2018
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.14 KB | None | 0 0
  1. def indefinitize(string)
  2. vowels = "aeiou".split(//)
  3. vowels.include?(string.first.downcase) ? "an #{string}" : "a #{string}"
  4. end
Add Comment
Please, Sign In to add comment