Class: Gallus::Output::File
Overview
Public: A thread safe IO stream output that writes to given file.
Instance Method Summary collapse
- #close ⇒ Object
-
#initialize(filename, format) ⇒ File
constructor
A new instance of File.
Methods inherited from Stream
Constructor Details
#initialize(filename, format) ⇒ File
Returns a new instance of File.
5 6 7 8 |
# File 'lib/gallus/output/file.rb', line 5 def initialize(filename, format) @file = ::File.open(filename, 'a+') super(@file, format) end |
Instance Method Details
#close ⇒ Object
10 11 12 |
# File 'lib/gallus/output/file.rb', line 10 def close @file.close end |