rb write to file ex