class BFS::Writer

Public Class Methods

new(name, tempdir: nil, perm: nil, **opts, &on_commit) click to toggle source
Calls superclass method
# File lib/bfs/helpers.rb, line 36
def initialize(name, tempdir: nil, perm: nil, **opts, &on_commit)
  @on_commit = on_commit

  tempfile = ::Tempfile.new(File.basename(name.to_s), tempdir, **opts)
  tempfile.chmod(perm) if perm
  super tempfile
end