Is there any built in way to require that a block be passed to a Ruby method? I realize I can just raise an exception if block_given? is false, but is there so
block_given?
raise 'need block' unless block_given?