CSV::BasicWriter (Class)

In: csv.rb
Parent: Writer

Methods

Public Class methods

[Source]

# File csv.rb, line 723
    def initialize(str_or_writable, col_sep = ?,, row_sep = nil)
      @col_sep = col_sep
      @row_sep = row_sep
      @dev = str_or_writable
      @dev.binmode if @dev.respond_to?(:binmode)
      @close_on_terminate = false
    end

Public Instance methods

Tell this writer to close the IO when terminated (Triggered by invoking CSV::BasicWriter#close).

[Source]

# File csv.rb, line 733
    def close_on_terminate
      @close_on_terminate = true
    end

[Validate]