Method: Ruvi::EditorApp::DiffLogger::DifferenceLog#initialize

Defined in:
lib/timemachine.rb

#initialize(app, buffer) ⇒ DifferenceLog

Returns a new instance of DifferenceLog.



11
12
13
14
15
16
17
18
# File 'lib/timemachine.rb', line 11

def initialize app, buffer
    # history_buffer used from here via indirection, as maybe history_buffer can change?
    @app, @buffer = app, buffer
    @last_save_point, @current_patch_num = nil, nil
    @diffs = []
    @ids2changesets = {}
    @partial_flush_mode = false
end