class Array def retry_each(&blk) raise ArgumentError unless block_given? yeild end end