module HippieCSV

Constants

ALTERNATE_ENCODING
DELIMETERS

The latter three characters are not expected to intentionally used as quotes. Rather, when usual quote characters are badly misused, we want to fall back to a character unlikely to be in the file, such that we can at least parse.

ENCODING
ENCODING_SAMPLE_CHARACTER_COUNT
ENCODING_WITH_BOM
FIELD_SAMPLE_COUNT
QUOTE_CHARACTERS
VERSION

Public Class Methods

parse(string) click to toggle source
# File lib/hippie_csv.rb, line 11
def self.parse(string)
  Support.maybe_parse(string) || (raise UnableToParseError)
end
read(path) click to toggle source
# File lib/hippie_csv.rb, line 6
def self.read(path)
  string = File.read(path, encoding: ENCODING_WITH_BOM)
  parse(string)
end
stream(path, &block) click to toggle source
# File lib/hippie_csv.rb, line 15
def self.stream(path, &block)
  Support.maybe_stream(path, &block)
end