Method: Surveyor::Common.csv_impl
- Defined in:
- lib/surveyor/common.rb
.csv_impl ⇒ Class
Loads and uses either FasterCSV (for Ruby 1.8) or the stdlib CSV (for Ruby 1.9+).
48 49 50 51 52 53 54 55 56 |
# File 'lib/surveyor/common.rb', line 48 def csv_impl @csv_impl ||= if RUBY_VERSION < '1.9' require 'fastercsv' FasterCSV else require 'csv' CSV end end |