lib/zenlish/inflect/inflection_table.rb in zenlish-0.2.02 vs lib/zenlish/inflect/inflection_table.rb in zenlish-0.2.03

- old
+ new

@@ -24,10 +24,10 @@ constraints = if theConstraints.nil? || theConstraints.empty? Array.new(headings.size) { |_i| nil } else theConstraints end - err_msg = "Table has #{headings.size} headings." + err_msg = "Table has #{headings.size} headings, instead of #{constraints.size}" raise StandardError, err_msg if constraints.size != headings.size actuals = [] headings.each_with_index do |hd, idx| if constraints[idx] actuals << constraints[idx] \ No newline at end of file