class DateTimeStepWith::CronListMatcher

Public Class Methods

new(cron_expression) click to toggle source
# File lib/date_time_step_with/cron_matcher.rb, line 25
def initialize(cron_expression)
  @list = cron_expression.split(",")
end

Public Instance Methods

=~(value) click to toggle source
# File lib/date_time_step_with/cron_matcher.rb, line 29
def =~(value)
  @list.include? value
end