lib/eco/data/locations/node_plain/parsing.rb in eco-helpers-2.6.0 vs lib/eco/data/locations/node_plain/parsing.rb in eco-helpers-2.6.1

- old
+ new

@@ -18,10 +18,10 @@ return false unless csv.is_a?(::CSV::Table) (basic_headers & csv.headers) == basic_headers end # It builds each NodePlain from the input csv. - # @param `csv` [CSV::Table] + # @param `csv` [CSV::Table] with specific headers # @return [Array<NodePlain>] def nodes_from_csv(csv) raise ArgumentError, "Expecting CSV::Table. Given: #{csv.class}" unless csv.is_a?(::CSV::Table) # Convert to Eco::CSV::Table for a fresh start csv = Eco::CSV.parse(csv.to_csv).nil_blank_cells.add_index_column(:row_num)