From: Joel Pearson Date: 2013-02-20T08:14:45+09:00 Subject: Re: Select "columns" from multidimensional array? I've now had time to do a bit more testing and debugging, and I've managed to come up with a (relatively) stable and usable framework. Even more surprising, I now have a working version of pretty much everything on my wish list. I suppose I can just call .dup or .clone for when I want to take different sections of the data down different paths. I've tried to refactor some of the more esoteric code, and improve the "encapsulation" by hiding the underlying hash wherever I spotted it poking out. I've actually managed to use recursion (in the "unique" method) without permanently looping! I'll just gloss over the amount of permanent loops I went through to get that right... I've had to make some hefty use of reverse_each to sort out deleting entire sections and compacting the rest afterwards. As usual, I've probably made many silly mistakes and done things the hard way. Any advice would be appreciated (although not demanded ;-) ). I think the next thing to do is put this class through some real-world scenarios, so I'll be using it as a replacement for ye olde Excel_Sheet class. Attachments: http://www.ruby-forum.com/attachment/8156/RubyExcel.rb -- Posted via http://www.ruby-forum.com/.