Class: CSV::BasicWriter
Instance Method Summary collapse
-
#close_on_terminate ⇒ Object
Tell this writer to close the IO when terminated (Triggered by invoking CSV::BasicWriter#close).
-
#initialize(str_or_writable, fs = ',',, rs = nil) ⇒ BasicWriter
constructor
A new instance of BasicWriter.
Methods inherited from Writer
Constructor Details
#initialize(str_or_writable, fs = ',',, rs = nil) ⇒ BasicWriter
Returns a new instance of BasicWriter.
714 715 716 717 718 719 |
# File 'lib/csv.rb', line 714 def initialize(str_or_writable, fs = ',', rs = nil) @fs = fs @rs = rs @dev = str_or_writable @close_on_terminate = false end |
Instance Method Details
#close_on_terminate ⇒ Object
Tell this writer to close the IO when terminated (Triggered by invoking CSV::BasicWriter#close).
723 724 725 |
# File 'lib/csv.rb', line 723 def close_on_terminate @close_on_terminate = true end |