lib/aviglitch/frames.rb in aviglitch-0.1.5 vs lib/aviglitch/frames.rb in aviglitch-0.1.6

- old
+ new

@@ -60,13 +60,13 @@ end ## # Enumerates the frames. # It returns Enumerator if a block is not given. - def each + def each &block if block_given? temp = Tempfile.new 'frames', binmode: true - frames_data_as_io(temp, Proc.new) + frames_data_as_io(temp, block) overwrite temp temp.close! else self.enum_for :each end