I encountered the following Ruby code:
class MyClass attr_accessor :items ... def each @items.each{|item| yield item} end ... end
As cpm said its taking the block and executing it
Simple example:
def my_method yield end my_method do puts "Testing yield" end Testing yield => nil