J
Junkone
i am not sure what is wrong here
tablearr is of type FASTERCSV::TABLE
eachrow is of type FASTERCSV::ROW
as per the fastercsv doc, the table.values_at returns a array.
the array has method .include?<searchcriteria>
def checkduplicates(eachrow,tablearr,indx,criteria)
eachrow.each{|name,valu|
rowdata=tablearr.values_at(indx+criteria)
if(rowdata.include?valu)<<<<<<<<<<<<< ERROR HERE.
puts "match"
end
}
c:/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.2.0/lib/faster_csv.rb:
345:in `==': undefined method `row' for "03":String (NoMethodError)
from scan.rb:7:in `include?'
tablearr is of type FASTERCSV::TABLE
eachrow is of type FASTERCSV::ROW
as per the fastercsv doc, the table.values_at returns a array.
the array has method .include?<searchcriteria>
def checkduplicates(eachrow,tablearr,indx,criteria)
eachrow.each{|name,valu|
rowdata=tablearr.values_at(indx+criteria)
if(rowdata.include?valu)<<<<<<<<<<<<< ERROR HERE.
puts "match"
end
}
c:/ruby/lib/ruby/gems/1.8/gems/fastercsv-1.2.0/lib/faster_csv.rb:
345:in `==': undefined method `row' for "03":String (NoMethodError)
from scan.rb:7:in `include?'