Sha256: eaeb98f2e66a019656867d691afc02f689964b04c22acc223f95e8680e3bed74
Contents?: true
Size: 859 Bytes
Versions: 2
Compression:
Stored size: 859 Bytes
Contents
# frozen_string_literal: true module SmarterCSV class << self attr_reader :has_rails, :csv_line_count, :chunk_count, :errors, :file_line_count, :headers, :raw_header, :result, :warnings def initialize_variables @has_rails = !!defined?(Rails) @csv_line_count = 0 @chunk_count = 0 @errors = {} @file_line_count = 0 @headerA = [] @headers = nil @raw_header = nil # header as it appears in the file @result = [] @warnings = {} @v2_mode = false @enforce_utf8 = false # only set to true if needed (after options parsing) end # :nocov: # rubocop:disable Naming/MethodName def headerA warn "Deprecarion Warning: 'headerA' will be removed in future versions. Use 'headders'" @headerA end # rubocop:enable Naming/MethodName # :nocov: end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smarter_csv-1.11.0.pre2 | lib/smarter_csv/variables.rb |
smarter_csv-1.11.0.pre1 | lib/smarter_csv/variables.rb |