Hi again,
here is the obfuscated version
class Date
def add_weekdays(days)
new_date, wd, w, d = self, wday, days / 5, days % 5
new_date += w * 7 + ((wd == 6) ? 2 : (wd == 0) ? 1 : 0)
new_date += d + (((new_date.wday + d) > 5) ? 2 : 0)
end
end
Simon