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
# File 'lib/nose/backend/file.rb', line 25

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