Module: Cronin::Restricted

Included in:
MonthDays, WeekDays
Defined in:
lib/cronin/restricted.rb

Instance Method Summary collapse

Instance Method Details

#restricted?Boolean

Returns:

  • (Boolean)


4
5
6
7
8
9
10
11
# File 'lib/cronin/restricted.rb', line 4

def restricted?
  case @cron_value
    #TODO: repetition code from abstract timing
  when /^(\d{1,2}|\*\/\d{1,2})$/
    return true
  when "*"
  end
end