From: Joel Pearson Date: 2013-04-30T03:51:57+09:00 Subject: Re: writing lines to a file I think I know what the problem is, you're using puts or print in #to_s instead of returning the string. The puts and print methods return nil. -- Posted via http://www.ruby-forum.com/.