I am trying to write an iterator in Ruby which sends the first callback of each month.
How would you write something like this?
if date.today.day == 1 #do something end
< / Pre>I'm not sure what you are saying to an Iterator - I hope that it does not mean that a program looping, constantly asks if today's day is the first month? Crontab seems like a waste of resources :)
Comments
Post a Comment