Sha256: 40174a5ad17cfe66542a1e25429a71db2d6e5de38dd6aaa9b13bf09f8eac2372

Contents?: true

Size: 217 Bytes

Versions: 1

Compression:

Stored size: 217 Bytes

Contents

require "bibtex"

module BibtexMunge
  def save_and_backup(path)
    if path == @filepath
      File.rename(@filepath, @filepath+".bak")
    end
    f = File.open(path, "w")
    f.write(to_s)
    f.close
  end
end  

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bibtex_munge-0.0.1 lib/bibtex_munge/save.rb