class LogStash::Filters::Dictionary::CsvFile

Protected Instance Methods

read_file_into_dictionary() click to toggle source
# File lib/logstash/filters/dictionary/csv_file.rb, line 9
def read_file_into_dictionary
  ::CSV.open(@dictionary_path, 'r:bom|utf-8') do |csv|
    csv.each { |k,v| @dictionary[k] = v }
  end
end