Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class String
- def starts_with_vowel?
- self =~ /^[aeiou]/i
- end
- end
- words = IO.read("file").
- split(/\W+/).
- select(&:starts_with_vowel).
- map(&:downcase).
- uniq.
- sort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement