class String def vowels self.scan(/[aeiou]/i) endend# And put this code in a file called vowel_test.rb:require 'string_extensions'puts "This is a test".vowels.join('-')