lib/MESH/tree.rb in mesh-medical-subject-headings-2.0.2 vs lib/MESH/tree.rb in mesh-medical-subject-headings-2.0.3

- old
+ new

@@ -15,11 +15,11 @@ filename = File.expand_path('../../../data/mesh_data_2014/d2014.bin.gz', __FILE__) gzipped_file = File.open(filename) file = Zlib::GzipReader.new(gzipped_file) - current_heading = MESH::Heading.new + current_heading = MESH::Heading.new(self) current_heading.default_locale = @@default_locale file.each_line do |line| case @@ -31,10 +31,10 @@ @by_original_heading[current_heading.original_heading] = current_heading current_heading.tree_numbers.each do |tree_number| @by_tree_number[tree_number] = current_heading end end - current_heading = MESH::Heading.new + current_heading = MESH::Heading.new(self) current_heading.default_locale = @@default_locale when matches = line.match(/^UI = (.*)/) current_heading.unique_id = matches[1] \ No newline at end of file