summaryrefslogtreecommitdiff
path: root/lib/csv/input_record_separator.rb
blob: 7a99343c0cfbe751e7d2a23d449c56d46be9a8d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
require "English"
require "stringio"

class CSV
  module InputRecordSeparator
    class << self
      if RUBY_VERSION >= "3.0.0"
        def value
          "\n"
        end
      else
        def value
          $INPUT_RECORD_SEPARATOR
        end
      end
    end
  end
end