class Csvlint::Validator::LineCSV
Constants
- ENCODE_RE
- ENCODE_STR
- ESCAPE_RE
Public Instance Methods
encode_re(*chunks)
click to toggle source
Optimization: Memoize `encode_re`. @see github.com/ruby/ruby/blob/v2_2_3/lib/csv.rb#L2273
# File lib/csvlint/validate.rb, line 25 def encode_re(*chunks) ENCODE_RE[encode_str(*chunks)] end
encode_str(*chunks)
click to toggle source
Optimization: Memoize `encode_str`. @see github.com/ruby/ruby/blob/v2_2_3/lib/csv.rb#L2281
# File lib/csvlint/validate.rb, line 31 def encode_str(*chunks) ENCODE_STR[@encoding.name][chunks] end
escape_re(str)
click to toggle source
Optimization: Memoize `escape_re`. @see github.com/ruby/ruby/blob/v2_2_3/lib/csv.rb#L2265
# File lib/csvlint/validate.rb, line 37 def escape_re(str) ESCAPE_RE[@re_chars][@re_esc][str] end
init_converters(options, field_name = :converters)
click to toggle source
Optimization: Disable the CSV library's converters feature. @see github.com/ruby/ruby/blob/v2_2_3/lib/csv.rb#L2100
# File lib/csvlint/validate.rb, line 43 def init_converters(options, field_name = :converters) @converters = [] @header_converters = [] options.delete(:unconverted_fields) options.delete(field_name) end