Module: Csv

Defined in:
lib/csvreader/reader.rb

Overview

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

Defined Under Namespace

Classes: Configuration, Dialect

Class Method Summary collapse

Class Method Details

.configObject



101
102
103
# File 'lib/csvreader/reader.rb', line 101

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

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

lets you use

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

Yields:



97
98
99
# File 'lib/csvreader/reader.rb', line 97

def self.configure
  yield( config )
end