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
- .config ⇒ Object
-
.configure {|config| ... } ⇒ Object
lets you use Csv.configure do |config| config.sep = ‘,’ ## or “/t” end.
Class Method Details
.config ⇒ Object
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
83 84 85 |
# File 'lib/csvrecord/reader.rb', line 83 def self.configure yield( config ) end |