Method: NoSE::Backend::FileBackend.finalize

Defined in:
lib/nose/backend/file.rb

.finalize(index_data, file) ⇒ Object

Save data when the object is destroyed



25
26
27
28
29
30
31
# File 'lib/nose/backend/file.rb', line 25

def self.finalize(index_data, file)
  proc do
    if !file.nil?
      Marshal.dump(index_data, File.open(file, 'w'))
    end
  end
end