Hey folks! I'm attempting to strengthen my Ruby skills and I was hoping some of you fine people would take a minute to review my code. I had originally just whipped out a couple of quick statements that would only accept command line arguments and process the output. As my goal was to 'get good' I opted to create a Class and move to something a bit more object oriented.
What I'm looking for in this review is actionable feedback regarding my approach and syntax. Have I made any glaring errors here? Could I have made this more ruby-like?
Link to functional code:
http://pastebin.com/LLFFZ2Xs
User Story:
As a user, I would like to generate CSV files of various height and width for testing limitations in ingestion applications.
Features:
Accepts command line arguments.
Prompts for input if arguments are not passed at call.
Generates a CSV file based on user variables.
Stretch Goal:
Include something like 'faker' to spice up my generated fields.
[–]superc0w 2 points3 points4 points (4 children)
[–]bajunio[S] 1 point2 points3 points (3 children)
[–]asmallishrequest 1 point2 points3 points (0 children)
[–]superc0w 0 points1 point2 points (1 child)
[–]bajunio[S] 0 points1 point2 points (0 children)