Class: Gio::OutputStream
- Inherits:
-
Object
- Object
- Gio::OutputStream
- Defined in:
- lib/gio2/output-stream.rb
Direct Known Subclasses
Class Method Summary collapse
Class Method Details
.open(*arguments) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/gio2/output-stream.rb', line 20 def open(*arguments) output_stream = new(*arguments) return output_stream unless block_given? begin yield(output_stream) ensure output_stream.close unless output_stream.closed? end end |