>     @rf.each do |line|

does rf have multiple lines in it?
(you can add a puts line in there, to see).
-r
-- 
Posted via http://www.ruby-forum.com/.