Class: AsciiDataTools::Filter::Diffing::DiffParsingFilter
- Defined in:
- lib/ascii-data-tools/filter/diffing.rb
Instance Method Summary collapse
-
#initialize ⇒ DiffParsingFilter
constructor
A new instance of DiffParsingFilter.
Methods inherited from Filter
#<<, #has_records?, #read, #write
Constructor Details
#initialize ⇒ DiffParsingFilter
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 |