# This code is passed to the each method that then runs the code block for each element of the array. # You can write methods of your own to handle code blocks. def each_vowel(&code_block) %w{a e i o u}.each { |vowel| code_block.call(vowel) } end each_vowel { |vowel| puts vowel }