Hear us Roar
Article:
 |
|
Ruby/Tk Primer: Creating a cron GUI Interface with Ruby/Tk
|
| Subject: |
|
Error in CronJob Class |
| Date: |
|
2004-07-20 18:19:45 |
| From: |
|
christopher_roach
|
|
|
|
Hi All,
Earlier today I received a couple of emails that pointed out an error I had in my code. In the CronJob class I have two initialize methods and Ruby does not allow methods to be overloaded. If you want to fix the error, replace the two initialize methods with the code below:
def initialize(minute="*", hour="*", day="*", month="*",
weekday="*", command="*")
@minute = minute
@hour = hour
@day = day
@month = month
@weekday = weekday
@command = command
end
|
|
| |