Method: OpenC3::CSV#initialize
- Defined in:
- lib/openc3/utilities/csv.rb
#initialize(input_file) ⇒ CSV
Returns a new instance of CSV.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/openc3/utilities/csv.rb', line 31 def initialize(input_file) @filename = input_file @hash = {} @archive = nil @archive_file = "" Object::CSV.read(input_file).each do |line| next if line[0].strip()[0] == '#' # Ignore Ruby comment lines @hash[line[0]] = line[1..-1] end end |