# A Total Newb Question about Runt

**URL:** <https://www.ruby-forum.com/t/a-total-newb-question-about-runt/147201>\
**Category:** Rails\
**Created:** [August 29, 2008, 10:04am UTC](https://www.ruby-forum.com/t/a-total-newb-question-about-runt/147201 "2008-08-29T10:04:51Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![infinteVerve](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e19adc/32.png) [@infinteVerve](https://www.ruby-forum.com/u/infinteVerve)\
**Post date:** [August 29, 2008, 10:04am UTC](https://www.ruby-forum.com/t/a-total-newb-question-about-runt/147201/1 "2008-08-29T10:04:51Z")

</div>

I was looking into the runt gem, but it’s obvious I’m a total newb.

I want to know if this is possible using runt, and if someone here is  
gracious enough to spell it our for a newbie.

I’m trying to figure out how to use runt to calculate a set of dates  
( i.e. every monday starting on Sept 1, 2008, and repeating for, say,  
8 weeks. ) and then passing those dates into an array named  
‘somedates’, for example.

I realize this may be more of a Ruby than a RoR question. Any help is  
greatly appreciated.

---

<div class="post-metadata">

**Author:** ![infinteVerve](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/i/e19adc/32.png) [@infinteVerve](https://www.ruby-forum.com/u/infinteVerve)\
**Post date:** [September 3, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/a-total-newb-question-about-runt/147201/2 "2008-09-03T17:23:11Z")

</div>

require ‘date’  
d = Date.parse(“Sept 1, 2008”)  
somedates = Array.new(8).map { |x| x = d += 7 }

10.times { puts “I \<3 ruby” }

cheers  
D
