Module: ODDB::Util::Schedule

Included in:
Exporter, ODDB::Updater
Defined in:
src/util/schedule.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) run_on_monthday(day, &block)



7
8
9
10
11
# File 'src/util/schedule.rb', line 7

def run_on_monthday(day, &block)
  if(today.day == day)
    block.call
  end
end

- (Object) run_on_weekday(day, &block)



12
13
14
15
16
# File 'src/util/schedule.rb', line 12

def run_on_weekday(day, &block)
  if(today.wday == day)
    block.call
  end
end