class CsvReader::Parser

Constants

DEFAULT

use/allow different “backends” e.g. ParserStd, ParserStrict, ParserTab, etc.

parser must support parse method (with and without block)
 e.g.  records = parse( data )
          -or-
       parse( data ) do |record|
       end
EXCEL
FIXED
HUMAN
JSON
MYSQL
NUMERIC
POSTGRES
POSTGRES_TEXT
RFC4180
STRICT
TAB
TABLE
YAML

Private Class Methods

default() click to toggle source
# File lib/csvreader/base.rb, line 79
def self.default()         DEFAULT;         end
excel() click to toggle source
# File lib/csvreader/base.rb, line 89
def self.excel()           EXCEL;           end
f() click to toggle source
# File lib/csvreader/base.rb, line 100
def self.f()               fixed;           end
fix() click to toggle source
# File lib/csvreader/base.rb, line 99
def self.fix()             fixed;           end
fixed() click to toggle source
# File lib/csvreader/base.rb, line 98
def self.fixed()           FIXED;           end
hum() click to toggle source
# File lib/csvreader/base.rb, line 84
def self.hum()             human;           end
human() click to toggle source
# File lib/csvreader/base.rb, line 83
def self.human()           HUMAN;           end
hxl() click to toggle source
# File lib/csvreader/base.rb, line 85
def self.hxl()             human;           end
j() click to toggle source
# File lib/csvreader/base.rb, line 103
def self.j()               json;            end
json() click to toggle source
# File lib/csvreader/base.rb, line 102
def self.json()            JSON;            end
mysql() click to toggle source
# File lib/csvreader/base.rb, line 90
def self.mysql()           MYSQL;           end
n() click to toggle source
# File lib/csvreader/base.rb, line 82
def self.n()               numeric;         end
num() click to toggle source
# File lib/csvreader/base.rb, line 81
def self.num()             numeric;         end
numeric() click to toggle source
# File lib/csvreader/base.rb, line 80
def self.numeric()         NUMERIC;         end
postgres() click to toggle source
# File lib/csvreader/base.rb, line 92
def self.postgres()        postgresql;      end
postgres_text() click to toggle source
# File lib/csvreader/base.rb, line 94
def self.postgres_text()   postgresql_text; end
postgresql() click to toggle source
# File lib/csvreader/base.rb, line 91
def self.postgresql()      POSTGRESQL;      end
postgresql_text() click to toggle source
# File lib/csvreader/base.rb, line 93
def self.postgresql_text() POSTGRESQL_TEXT; end
rfc4180() click to toggle source
# File lib/csvreader/base.rb, line 88
def self.rfc4180()         RFC4180;         end
strict() click to toggle source
# File lib/csvreader/base.rb, line 87
def self.strict()          STRICT;          end
tab() click to toggle source
# File lib/csvreader/base.rb, line 96
def self.tab()             TAB;             end
table() click to toggle source
# File lib/csvreader/base.rb, line 97
def self.table()           TABLE;           end
y() click to toggle source
# File lib/csvreader/base.rb, line 105
def self.y()               yaml;            end
yaml() click to toggle source
# File lib/csvreader/base.rb, line 104
def self.yaml()            YAML;            end