def is_specification_in_effect?(time=Time.now)
      idx = 0
      test_results = @cron_values.collect do | cvalues |
        time_value = time.send(TimeMethods[idx])
        idx += 1
        !cvalues.detect { | cv | cv.is_effective?(time_value) }.nil?
      end.all?

    end
def is_specification_in_effect?(time=Time.now)
      idx = 0
      test_results = @cron_values.collect do | cvalues |
        time_value = time.send(TimeMethods[idx])
        idx += 1
        !cvalues.detect { | cv | cv.is_effective?(time_value) }.nil?
      end.all?

    end
Constructs a new CronSpecification with a textual cron specificiation.

 A broad cron syntax is supported:

  *    *    *    *    *
  -    -    -    -    -
  |    |    |    |    |
  |    |    |    |    +----- day of week (0 - 6) (Sunday=0)
  |    |    |    +---------- month (1 - 12)
  |    |    +--------------- day of month (1 - 31)
  |    +-------------------- hour (0 - 23)
  +------------------------- min (0 - 59)

 The following named entries can be used:

 * Day of week - sun, mon, tue, wed, thu, fri, sat
 * Month - jan feb mar apr may jun jul aug sep oct nov dec

 The following constructs are supported:

 * Ranges are supported (e.g. 2-10 or mon-fri)
 * Multiple values are supported (e.g. 2,3,8 or mon,wed,fri)
 * Wildcards are supported (e.g. *)
 * Step values are supported (e.g. */4)
 * Combinations of all but wildcard are supported (e.g. 2,*/3,8-10)

 A single space is required between each group.


 Return true if the specified time falls within the definition of the
 CronSpecification. The parameter defaults to the current time.