#!/usr/bin/ruby h = Proc.new { print "hello, " } w = Proc.new { print "world\n" } func_array = [ h, w ] func_array.each {|func| func.call }