Class: AsciiDataTools::Filter::Diffing::DiffParsingFilter

Inherits:
Filter
  • Object
show all
Defined in:
lib/ascii-data-tools/filter/diffing.rb

Instance Method Summary collapse

Methods inherited from Filter

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

Constructor Details

#initializeDiffParsingFilter

Returns a new instance of DiffParsingFilter.



111
112
113
114
115
116
117
# File 'lib/ascii-data-tools/filter/diffing.rb', line 111

def initialize
  super do |record|
    difference = make_difference_from(record)
    difference.consume(upstream.read) until difference.complete?
    difference
  end
end