Module: Csv

Defined in:
lib/csvrecord/reader.rb

Overview

check: rename to CsvSettings / CsvPref / CsvGlobals or similar - why? why not???

Defined Under Namespace

Classes: Configuration

Class Method Summary collapse

Class Method Details

.configObject



87
88
89
# File 'lib/csvrecord/reader.rb', line 87

def self.config
  @config ||= Configuration.new
end

.configure {|config| ... } ⇒ Object

lets you use

Csv.configure do |config|
   config.sep = ','   ## or "/t"
end

Yields:



83
84
85
# File 'lib/csvrecord/reader.rb', line 83

def self.configure
  yield( config )
end