I have some Ruby code which takes dates on the command line in the format:
-d 20080101,20080201..20080229,20080301
Which means I want to run for all dates between 20080201 and 20080229 (inclusive) and the other dates present in the list.
Given I can get the string 20080201..20080229 what is the best way to convert this to an instance of Range. Currently I am using eval, but it feels like there should be a better way.
@Purfideas I was kind of looking for a more general answer for converting any string of type int..int to a Range I guess.