From: Alpha Blue Date: 2010-09-28T02:26:50+09:00 Subject: Re: Need assistance with hash of arrays and injecting values > > Then base your other data structures on these primitive types. > > Kind regards > > robert Hi Robert, I'll have to mull over everything you just posted. Eventually, I would like to clean up a lot of my date code. Originally I had based the start and end weeks on the dates they were compiled_on in the database. The dates in the database were simply YYYY-MM-DD format. When I compiled data, I updated the compiled_on dates and when I further tasked specific database tables for calculation entries, I looked within the compiled_on date parameters. This in turn has not made for a clean way of working with things over time in a modular fashion. If, for example, I place 10 years worth of data, it's difficult and messy to create yearly hashes. This is partly why I wanted to start optimizing and cleaning up my code and then work more concisely within a class. Again, I'll look over your example and see what I can do. -- Posted via http://www.ruby-forum.com/.