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