[ruby] How to read lines of a file in Ruby