lib/smilodon.rb in smilodon-0.2.6 vs lib/smilodon.rb in smilodon-0.2.7
- old
+ new
@@ -63,14 +63,13 @@
# Call the before hook if defined.
#
# @usage
# populates 'TestFile', :before => :inactivate
send(before) if before
-
rows = parser.parse(read(f))
rows.each_with_index do |row, index|
if index == 0 && header
- row = header = rows.shift
+ self.header = row
else
process(row)
end
end
end