How to Write to a File in Ruby | CodeTrail