Class Runt::REWeek
In: lib/runt/temporalexpression.rb
Parent: TExpr

TExpr that matches days of the week within one week only.

If start and end day are equal, the entire week will match true.

 See also: Date

Methods

include?   new   to_s  

Constants

VALID_RANGE = 0..6

Public Class methods

Creates a REWeek using the supplied start day(range = 0..6, where 0=>Sunday) and an optional end day. If an end day is not supplied, the maximum value (6 => Saturday) is assumed.

If the start day is greater than the end day, an ArgumentError will be raised

Public Instance methods

[Validate]