Also, there's gotta be a better way of setting up 2D arrays in ruby, so any advice on that would be appreciated.
Here's how I'm defining 2D arrays:
@virtually_encumbered_columns = Array.new (0..2).each do |i| @virtually_encumbered_columns[i] = Array.new end
Pretty wordy for a simple matrix of length 3 (and no specific width ...)
I can't explain my problem concisely enough, and the code is a complete mess (poor choice of classes during planning ) But basicaly, I try to do something like puts the class of my array, to verify that it's an array, then I get the class of the first index of that array, to verify it's a "fixnum" or a "string" (which are CONSTANTLY getting switched around in my code, I feel like I have no control in this language). But when I get the first index of my array, instead of being a fixnum, it's another array! Does anyone have any advice on how to sort out arrays and dubug a ruby app?