MCPcopy Create free account
hub / github.com/apache/arrow / open_output_stream

Method open_output_stream

ruby/red-arrow/lib/arrow/file-system.rb:21–32  ·  view source on GitHub ↗
(path)

Source from the content-addressed store, hash-verified

19 class FileSystem
20 alias_method :open_output_stream_raw, :open_output_stream
21 def open_output_stream(path)
22 stream = open_output_stream_raw(path)
23 if block_given?
24 begin
25 yield(stream)
26 ensure
27 stream.close
28 end
29 else
30 stream
31 end
32 end
33 end
34end

Callers 1

save_to_uriMethod · 0.45

Calls 1

closeMethod · 0.45

Tested by

no test coverage detected