Class: Arrow::FileOutputStream

Inherits:
Object
  • Object
show all
Defined in:
lib/arrow/file-output-stream.rb

Instance Method Summary collapse

Constructor Details

#initialize(path, options = {}) ⇒ FileOutputStream

Returns a new instance of FileOutputStream.



22
23
24
25
26
27
28
29
30
31
32
# File 'lib/arrow/file-output-stream.rb', line 22

def initialize(path, options={})
  append = nil
  case options
  when true, false
    append = options
  when Hash
    append = options[:append]
  end
  append = false if append.nil?
  initialize_raw(path, append)
end