From: Jenny Purcell Date: 2007-10-02T14:20:06+09:00 Subject: Outputting results as html in a file Background: I'm working on a Ruby program to simulate horse races for a fantasy horse racing league. It works off a csv file I put together by hand with the information necessary for each race. I realize it would be easier for people in the group to follow if I was programming with objects. However, I just don't understand OO programming, my skills (such as they are) are procedural. Ruby was pointed out to me as a language that would allow me to write procedural programs and so far it is working out very nicely in that regard. After much hammering and fiddling, I have expanded the program significantly since I last posted to the group. I can now run multiple races off a single csv file, and I've added some additional features I wanted. What I'd like to be able to do, now, is provide minimally formatted html "results" for each race. What I'd like is output that would be something like this:

1a Mdn 2yoC/G Trot $3500
Winner: Ima Winnah, 2005 chestnut colt ABC
Bred by: Suzie Creamcheese
T= 2:00.1f
1(8) Ima Winnah, 05 cc, ABC, unplcd, pp4, by neck, Given pace and in control from gate to wire, T=2:00.1f
Using my variable names, it would be something like this:

race_name
(race #1) Winner, details, time, etc, not coded into original program yet

position[j](count + 1) horse_name[j], horse_info[j], owners_initials[j], best_result[j], pp pole_new[j], by , , T=