|
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
|