# File lib/dbi/dbi.rb, line 832 def each(&p) raise InterfaceError, "Statement was already closed!" if @handle.nil? raise InterfaceError, "Statement must first be executed" unless @fetchable raise InterfaceError, "No block given" unless block_given? fetch(&p) end