Class: AsciiDataTools::Filter::Diffing::DiffExecutingFilter

Inherits:
BufferingFilter show all
Includes:
ExternalPrograms
Defined in:
lib/ascii-data-tools/filter/diffing.rb

Instance Method Summary collapse

Methods included from ExternalPrograms

#diff, #diff_command_for, #edit_differences, #modify_file_mtime_to, #sort

Methods inherited from Filter

#<<, #has_records?, #read, #write

Constructor Details

#initializeDiffExecutingFilter

Returns a new instance of DiffExecutingFilter.



31
32
33
34
35
36
37
# File 'lib/ascii-data-tools/filter/diffing.rb', line 31

def initialize
  super do |tempfiles|
    stream = diff(tempfiles)
    raise StreamsEqualException.new if stream.eof?
    stream
  end
end